2024-09-08 19:29:21 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright Β© 2024 RTAkland
|
|
|
|
|
* Author: RTAkland
|
|
|
|
|
* Date: 2024/9/8
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package cn.rtast.fancybot.commands
|
|
|
|
|
|
|
|
|
|
import cn.rtast.rob.entity.GroupMessage
|
|
|
|
|
import cn.rtast.rob.util.BaseCommand
|
|
|
|
|
import cn.rtast.rob.util.ob.MessageChain
|
2024-09-19 11:06:40 +08:00
|
|
|
import cn.rtast.rob.util.ob.OneBotListener
|
2024-09-08 19:29:21 +08:00
|
|
|
|
|
|
|
|
class LikeMeCommand : BaseCommand() {
|
|
|
|
|
override val commandNames = listOf("θ΅ζ")
|
|
|
|
|
|
2024-09-19 11:06:40 +08:00
|
|
|
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
|
2024-09-08 19:29:21 +08:00
|
|
|
listener.sendLike(message.sender.userId, 10)
|
|
|
|
|
val msg = MessageChain.Builder()
|
|
|
|
|
.addReply(message.messageId)
|
|
|
|
|
.addText("πδΊδ½ εδΈ~~π")
|
|
|
|
|
.build()
|
|
|
|
|
listener.sendGroupMessage(message.groupId, msg)
|
|
|
|
|
}
|
|
|
|
|
}
|