1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-02-28 01:42:39 +03:00
Octobot/Boyfriend/Commands/PingCommand.cs
l1ttleO f30485dd71
ton of stuff
- new command handler
- multilanguage support
- time out support
- responses
- a ton of stuff
2022-01-18 22:38:15 +05:00

25 lines
No EOL
825 B
C#

using Discord.Commands;
// ReSharper disable UnusedType.Global
// ReSharper disable UnusedMember.Global
namespace Boyfriend.Commands;
public class PingCommand : Command {
public override async Task Run(SocketCommandContext context, string[] args) {
await context.Channel.SendMessageAsync($"{Utils.GetBeep(Boyfriend.GetGuildConfig(context.Guild).Lang)}" +
$"{Boyfriend.Client.Latency}{Messages.Milliseconds}");
}
public override List<string> GetAliases() {
return new List<string> {"ping", "пинг", "задержка"};
}
public override int GetArgumentsAmountRequired() {
return 0;
}
public override string GetSummary() {
return "Измеряет время обработки REST-запроса";
}
}