This repository has been archived on 2024-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
OctobotStealth/Boyfriend/Commands/PingModule.cs

14 lines
442 B
C#
Raw Normal View History

2021-12-07 15:52:37 +03:00
using Discord.Commands;
2021-12-07 21:27:27 +03:00
// ReSharper disable UnusedType.Global
// ReSharper disable UnusedMember.Global
2021-12-07 15:52:37 +03:00
namespace Boyfriend.Commands;
public class PingModule : ModuleBase<SocketCommandContext> {
[Command("ping")]
[Summary("Измеряет время обработки REST-запроса")]
[Alias("пинг")]
public async Task Run()
=> await ReplyAsync(Utils.GetBeep() + Boyfriend.Client.Latency + "мс");
}