feat: add reaction command
This commit is contained in:
4 files changed
+28
-4
No files matched your search
@@ -95,7 +95,7 @@ val commands = listOf(
|
||||
JueCommand(), ShortLinkCommand(),
|
||||
ShotOtherCommand(), ReverseGIFCommand(),
|
||||
HelpCommand(), MusicCommand(),
|
||||
LikeMeCommand(), NiuziTransferCommand(),
|
||||
SendLikeCommand(), NiuziTransferCommand(),
|
||||
NiuziSignCommand(), NiuziJiJianCommand(),
|
||||
NiuziQueryCommand(), MyNiuziCommand(),
|
||||
NiuziBankCommand(), WithdrawCommand(),
|
||||
@@ -104,5 +104,6 @@ val commands = listOf(
|
||||
DMSearchCommand(), LlamaCommand(),
|
||||
QQMusicCommand(), BullShitGenerateCommand(),
|
||||
NiuziRankCommand(), NiuziBankRankCommand(),
|
||||
ShotSelfCommand(), TenSetuCommand()
|
||||
ShotSelfCommand(), TenSetuCommand(),
|
||||
ReactionCommand()
|
||||
)
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/10/1
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.commands.misc
|
||||
|
||||
import cn.rtast.rob.entity.GroupMessage
|
||||
import cn.rtast.rob.enums.QQFace
|
||||
import cn.rtast.rob.util.BaseCommand
|
||||
import cn.rtast.rob.util.ob.OneBotListener
|
||||
|
||||
class ReactionCommand : BaseCommand() {
|
||||
override val commandNames = listOf("reaction", "回应")
|
||||
|
||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||
(0..29).forEach { _ ->
|
||||
message.reaction(QQFace.entries.random())
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -14,7 +14,7 @@ import cn.rtast.rob.util.ob.MessageChain
|
||||
import cn.rtast.rob.util.ob.OneBotListener
|
||||
|
||||
@CommandDescription("资料卡点赞")
|
||||
class LikeMeCommand : BaseCommand() {
|
||||
class SendLikeCommand : BaseCommand() {
|
||||
override val commandNames = listOf("赞我")
|
||||
|
||||
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
||||
Reference in New Issue
Block a user