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

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

    public Task<bool> CanInvoke(CommandContext ctx) => Task.FromResult(true);

    public Task Invoke(CommandContext ctx);
}