mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-04 21:16:29 +03:00
Initial commit
This commit is contained in:
commit
3fa19a4794
8 changed files with 124 additions and 0 deletions
12
Boyfriend/Commands/PingModule.cs
Normal file
12
Boyfriend/Commands/PingModule.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using Discord.Commands;
|
||||
|
||||
namespace Boyfriend.Commands;
|
||||
|
||||
public class PingModule : ModuleBase<SocketCommandContext> {
|
||||
|
||||
[Command("ping")]
|
||||
[Summary("Измеряет время обработки REST-запроса")]
|
||||
[Alias("пинг")]
|
||||
public async Task Run()
|
||||
=> await ReplyAsync(Utils.GetBeep() + Boyfriend.Client.Latency + "мс");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue