about summary refs log tree commit diff
path: root/MatrixRoomUtils.Bot/Bot/Interfaces/ICommand.cs
blob: 20805b1322fc0df58ad30a6af38ea0cdc888709d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
namespace MatrixRoomUtils.Bot.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);
}