blob: 061ca53aa15bdfa468ca9dca9a6482828e6d6168 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
using MatrixRoomUtils.Bot.Bot.Interfaces;
namespace MatrixRoomUtils.Bot.Bot.Commands;
public class PingCommand : ICommand {
public PingCommand() {
}
public string Name { get; } = "ping";
public string Description { get; } = "Pong!";
public async Task Invoke(CommandContext ctx) {
await ctx.Room.SendMessageEventAsync("m.room.message", new() {
Body = "pong!"
});
}
}
|