about summary refs log tree commit diff
path: root/Utilities/LibMatrix.DevTestBot/Bot/Interfaces/ICommand.cs
blob: 2ba5a27df9db1e3a0623d3ec5cd30b4690bf53db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
namespace LibMatrix.ExampleBot.Bot.Interfaces;

public interface ICommand {
    public string Name { get; }
    public string Description { get; }

    public Task<bool> CanInvoke(CommandContext ctx) {
        return Task.FromResult(true);
    }

    public Task Invoke(CommandContext ctx);
}