diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2023-10-11 15:53:52 +0200 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2023-10-11 15:53:52 +0200 |
commit | ed42df73f1da60ddbfc11d5425a4955aece4acd0 (patch) | |
tree | 53eee9fd268f35982c09c4d450ccbca390e57a2b /OsuFederatedBeatmapApi/Commands | |
parent | Changes? (diff) | |
download | OsuFederatedBeatmapApi-ed42df73f1da60ddbfc11d5425a4955aece4acd0.tar.xz |
Bot does not crash on startup when creating rooms
Diffstat (limited to 'OsuFederatedBeatmapApi/Commands')
-rw-r--r-- | OsuFederatedBeatmapApi/Commands/CreateBeatmapSetListCommand.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OsuFederatedBeatmapApi/Commands/CreateBeatmapSetListCommand.cs b/OsuFederatedBeatmapApi/Commands/CreateBeatmapSetListCommand.cs new file mode 100644 index 0000000..eb00c3e --- /dev/null +++ b/OsuFederatedBeatmapApi/Commands/CreateBeatmapSetListCommand.cs @@ -0,0 +1,13 @@ +using LibMatrix.EventTypes.Spec; +using LibMatrix.Utilities.Bot.Interfaces; + +namespace OsuFederatedBeatmapApi.Commands; + +public class CreateBeatmapSetListCommand : ICommand { + public string Name { get; } = "create-beatmapset-list"; + public string Description { get; } = "Creates a beatmapset list and adds it to the list of tracked beatmapset lists"; + + public async Task Invoke(CommandContext ctx) { + await ctx.Room.SendMessageEventAsync(new RoomMessageEventContent(body: "pong!")); + } +} |