feat: add today dont eat/drink command

This commit is contained in:
2024-10-17 21:36:45 +08:00
parent e5b8b42d7a
commit 1b7f09732f
2 files changed
+20 -1

No files matched your search

+2 -1
View File
@@ -139,5 +139,6 @@ val commands = listOf(
SupportMeCommand(), TheCatCommand(), TheHistoryOfTodayCommand(), MCVersionCommand(), SupportMeCommand(), TheCatCommand(), TheHistoryOfTodayCommand(), MCVersionCommand(),
MinecraftWikiCommand(), GaoKaoDaysRemainCommand(), IdiomExplainCommand(), NiuziManagerCommand(), MinecraftWikiCommand(), GaoKaoDaysRemainCommand(), IdiomExplainCommand(), NiuziManagerCommand(),
TodayEatCommand(), TodayDrinkCommand(), MCLoginCommand(), RCONCommand(), TodayEatCommand(), TodayDrinkCommand(), MCLoginCommand(), RCONCommand(),
GravatarCommand(), PastebinCommand(), ShuffleEchoCommand() GravatarCommand(), PastebinCommand(), ShuffleEchoCommand(), TodayDontEatCommand(),
TodayDontDrinkCommand()
) )
@@ -34,6 +34,15 @@ class TodayEatCommand : BaseCommand() {
} }
} }
@CommandDescription("今天不吃什么")
class TodayDontEatCommand : BaseCommand() {
override val commandNames = listOf("今天不吃什么")
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
message.reply("你吃个结巴, 是吧")
}
}
@CommandDescription("今天喝什么") @CommandDescription("今天喝什么")
class TodayDrinkCommand : BaseCommand() { class TodayDrinkCommand : BaseCommand() {
override val commandNames = listOf("今天喝什么") override val commandNames = listOf("今天喝什么")
@@ -49,3 +58,12 @@ class TodayDrinkCommand : BaseCommand() {
message.reply("今天喝${drinkList.random()}吧~") message.reply("今天喝${drinkList.random()}吧~")
} }
} }
@CommandDescription("今天不吃什么")
class TodayDontDrinkCommand : BaseCommand() {
override val commandNames = listOf("今天不喝什么")
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
message.reply("你喝个结巴, 是吧")
}
}