From 741cc856e3546828bc127da03166067eb2053f43 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 5 Dec 2025 00:58:08 +0100 Subject: Drop dev test bot --- .../Bot/Commands/HelpCommand.cs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Utilities/LibMatrix.DevTestBot/Bot/Commands/HelpCommand.cs (limited to 'Utilities/LibMatrix.DevTestBot/Bot/Commands/HelpCommand.cs') diff --git a/Utilities/LibMatrix.DevTestBot/Bot/Commands/HelpCommand.cs b/Utilities/LibMatrix.DevTestBot/Bot/Commands/HelpCommand.cs deleted file mode 100644 index 33bbc5a..0000000 --- a/Utilities/LibMatrix.DevTestBot/Bot/Commands/HelpCommand.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Text; -using LibMatrix.EventTypes.Spec; -using LibMatrix.Utilities.Bot.Interfaces; -using Microsoft.Extensions.DependencyInjection; - -namespace LibMatrix.ExampleBot.Bot.Commands; - -public class HelpCommand(IServiceProvider services) : ICommand { - public string Name { get; } = "help"; - public string[]? Aliases => []; - public bool Unlisted => false; - public string Description { get; } = "Displays this help message"; - - public async Task Invoke(CommandContext ctx) { - var sb = new StringBuilder(); - sb.AppendLine("Available commands:"); - var commands = services.GetServices().ToList(); - foreach (var command in commands) sb.AppendLine($"- {command.Name}: {command.Description}"); - - await ctx.Room.SendMessageEventAsync(new RoomMessageEventContent(body: sb.ToString())); - } -} \ No newline at end of file -- cgit 1.5.1