Files
FancyBot/src/main/kotlin/cn/rtast/fancybot/commands/LikeMeCommand.kt
T

26 lines
738 B
Kotlin
Raw Normal View History

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
import cn.rtast.rob.util.ob.OneBotListener
2024-09-08 19:29:21 +08:00
class LikeMeCommand : BaseCommand() {
override val commandNames = listOf("θ΅žζˆ‘")
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)
}
}