diff --git a/src/main/kotlin/cn/rtast/fancybot/FancyBot.kt b/src/main/kotlin/cn/rtast/fancybot/FancyBot.kt index 8ac4745..eeb92fa 100644 --- a/src/main/kotlin/cn/rtast/fancybot/FancyBot.kt +++ b/src/main/kotlin/cn/rtast/fancybot/FancyBot.kt @@ -61,6 +61,10 @@ class FancyBot : OneBotListener { val messageId = message.messageId println("$sender($senderId: $groupId >>> $messageId): $msg") + if (message.rawMessage.contains("原神")) { + message.reply("你原神牛魔呢") + } + if (message.rawMessage.toList().any { it in arrayListOf('*', '-', '/', '+', '=') }) { val calculateResult = CalculateCommand.parse(message.rawMessage) calculateResult?.let { message.reply(calculateResult) } @@ -189,8 +193,7 @@ val commands = listOf( TenSetuCommand(), ShotSelfCommand(), ShotOtherCommand(), ReverseGIFCommand(), NiuziTransferCommand(), NiuziQueryCommand(), - GenshinCommand(), HelpCommand(), - MusicCommand(), + HelpCommand(), MusicCommand(), ) val START_UP_TIME = Instant.now().epochSecond diff --git a/src/main/kotlin/cn/rtast/fancybot/commands/misc/GenshinCommand.kt b/src/main/kotlin/cn/rtast/fancybot/commands/misc/GenshinCommand.kt deleted file mode 100644 index f5135c8..0000000 --- a/src/main/kotlin/cn/rtast/fancybot/commands/misc/GenshinCommand.kt +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright © 2024 RTAkland - * Author: RTAkland - * Date: 2024/9/24 - */ - - -package cn.rtast.fancybot.commands.misc - -import cn.rtast.rob.entity.GroupMessage -import cn.rtast.rob.util.BaseCommand -import cn.rtast.rob.util.ob.OneBotListener - -class GenshinCommand : BaseCommand() { - override val commandNames = listOf("元神", "原神") - - override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List) { - message.reply("你原神牛魔呢") - } -} \ No newline at end of file