about summary refs log tree commit diff
path: root/OsuFederatedBeatmapApi/Commands
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-10-11 15:53:52 +0200
committerEmma [it/its]@Rory& <root@rory.gay>2023-10-11 15:53:52 +0200
commited42df73f1da60ddbfc11d5425a4955aece4acd0 (patch)
tree53eee9fd268f35982c09c4d450ccbca390e57a2b /OsuFederatedBeatmapApi/Commands
parentChanges? (diff)
downloadOsuFederatedBeatmapApi-ed42df73f1da60ddbfc11d5425a4955aece4acd0.tar.xz
Bot does not crash on startup when creating rooms
Diffstat (limited to 'OsuFederatedBeatmapApi/Commands')
-rw-r--r--OsuFederatedBeatmapApi/Commands/CreateBeatmapSetListCommand.cs13
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!"));
+    }
+}