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