From b85b0bf33a3d01eb2ca6d58c15c56ff0b922ad05 Mon Sep 17 00:00:00 2001 From: RTAkland Date: Wed, 30 Oct 2024 18:14:26 +0800 Subject: [PATCH] feat: add help help --- src/main/kotlin/cn/rtast/fancybot/commands/HelpCommand.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/cn/rtast/fancybot/commands/HelpCommand.kt b/src/main/kotlin/cn/rtast/fancybot/commands/HelpCommand.kt index 72913f5..04824fe 100644 --- a/src/main/kotlin/cn/rtast/fancybot/commands/HelpCommand.kt +++ b/src/main/kotlin/cn/rtast/fancybot/commands/HelpCommand.kt @@ -34,6 +34,10 @@ class HelpCommand : BaseCommand() { msg.addText("[$commandName] [$description] 命令: $commandNames").addNewLine() } msg.addText("共计${commands.size}条命令") + node.addMessageChain( + MessageChain.Builder().addText("你可以使用`/help <指令>`来获取这个指令的帮助信息").build(), + configManager.selfId + ) node.addMessageChain(msg.build(), configManager.selfId) message.reply(node.build()) } else {