blob: 04d5124bfe31ee1fbb76cb13fb8e0822d86a8cf0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
using LibMatrix.LegacyEvents.EventTypes.Spec;
using LibMatrix.Utilities.Bot.Interfaces;
namespace LibMatrix.Utilities.Bot.Commands;
public class PingCommand : ICommand {
public string Name { get; } = "ping";
public string[]? Aliases { get; } = [ ];
public string Description { get; } = "Pong!";
public bool Unlisted { get; }
public async Task Invoke(CommandContext ctx) => await ctx.Room.SendMessageEventAsync(new RoomMessageEventContent(body: "pong!"));
}
|