chore: remove genshin command
This commit is contained in:
2 files changed
+5
-22
No files matched your search
@@ -61,6 +61,10 @@ class FancyBot : OneBotListener {
|
|||||||
val messageId = message.messageId
|
val messageId = message.messageId
|
||||||
println("$sender($senderId: $groupId >>> $messageId): $msg")
|
println("$sender($senderId: $groupId >>> $messageId): $msg")
|
||||||
|
|
||||||
|
if (message.rawMessage.contains("原神")) {
|
||||||
|
message.reply("你原神牛魔呢")
|
||||||
|
}
|
||||||
|
|
||||||
if (message.rawMessage.toList().any { it in arrayListOf('*', '-', '/', '+', '=') }) {
|
if (message.rawMessage.toList().any { it in arrayListOf('*', '-', '/', '+', '=') }) {
|
||||||
val calculateResult = CalculateCommand.parse(message.rawMessage)
|
val calculateResult = CalculateCommand.parse(message.rawMessage)
|
||||||
calculateResult?.let { message.reply(calculateResult) }
|
calculateResult?.let { message.reply(calculateResult) }
|
||||||
@@ -189,8 +193,7 @@ val commands = listOf(
|
|||||||
TenSetuCommand(), ShotSelfCommand(),
|
TenSetuCommand(), ShotSelfCommand(),
|
||||||
ShotOtherCommand(), ReverseGIFCommand(),
|
ShotOtherCommand(), ReverseGIFCommand(),
|
||||||
NiuziTransferCommand(), NiuziQueryCommand(),
|
NiuziTransferCommand(), NiuziQueryCommand(),
|
||||||
GenshinCommand(), HelpCommand(),
|
HelpCommand(), MusicCommand(),
|
||||||
MusicCommand(),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
val START_UP_TIME = Instant.now().epochSecond
|
val START_UP_TIME = Instant.now().epochSecond
|
||||||
|
|||||||
@@ -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<String>) {
|
|
||||||
message.reply("你原神牛魔呢")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user