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/PingCommand.cs

19 lines
No EOL
593 B
C#

using Discord.Commands;
namespace Boyfriend.Commands;
public class PingCommand : Command {
public override string[] Aliases { get; } = {"ping", "latency", "pong", "пинг", "задержка", "понг"};
public override int ArgsLengthRequired => 0;
public override Task Run(SocketCommandContext context, string[] args) {
var builder = Boyfriend.StringBuilder;
builder.Append(Utils.GetBeep()).Append(Boyfriend.Client.Latency).Append(Messages.Milliseconds);
Output(ref builder);
builder.Clear();
return Task.CompletedTask;
}
}