mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-30 11:09:54 +03:00
ton of stuff
- new command handler - multilanguage support - time out support - responses - a ton of stuff
This commit is contained in:
parent
1c9caf6d75
commit
f30485dd71
29 changed files with 1686 additions and 520 deletions
25
Boyfriend/Commands/PingCommand.cs
Normal file
25
Boyfriend/Commands/PingCommand.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
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-запроса";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue