chore: add command usage tip

This commit is contained in:
2024-10-15 13:59:11 +08:00
parent ac88dcc296
commit ae3eae4e71
1 file changed
+4
@@ -37,6 +37,10 @@ class PastebinCommand : BaseCommand() {
} }
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) { override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
if (args.isEmpty()) {
message.reply("使用`/pb <内容>`或者回复一个消息`/pb`可以快速创建一个pastebin")
return
}
val content = args.joinToString(" ") val content = args.joinToString(" ")
message.reply(createPastebin(content)) message.reply(createPastebin(content))
insertActionRecord(CommandAction.Pastebin, message.sender.userId, content) insertActionRecord(CommandAction.Pastebin, message.sender.userId, content)