1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-30 11:09:54 +03:00

Seal all possible classes, add LICENSE, follow async naming conventions

This commit is contained in:
Octol1ttle 2022-09-18 19:41:29 +05:00
parent ac63719a0b
commit e767205c1a
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
20 changed files with 873 additions and 123 deletions

View file

@ -1,9 +1,9 @@
namespace Boyfriend.Commands;
public class PingCommand : Command {
public override string[] Aliases { get; } = { "ping", "latency", "pong", "пинг", "задержка", "понг" };
public sealed class PingCommand : ICommand {
public string[] Aliases { get; } = { "ping", "latency", "pong", "пинг", "задержка", "понг" };
public override Task Run(CommandProcessor cmd, string[] args) {
public Task RunAsync(CommandProcessor cmd, string[] args, string[] cleanArgs) {
var builder = Boyfriend.StringBuilder;
builder.Append(Utils.GetBeep())
@ -15,4 +15,4 @@ public class PingCommand : Command {
return Task.CompletedTask;
}
}
}