26 lines
706 B
Kotlin
26 lines
706 B
Kotlin
/*
|
|
* Copyright © 2024 RTAkland
|
|
* Author: RTAkland
|
|
* Date: 2024/9/8
|
|
*/
|
|
|
|
|
|
package cn.rtast.fancybot.commands.misc
|
|
|
|
import cn.rtast.fancybot.annotations.CommandDescription
|
|
import cn.rtast.rob.entity.GroupMessage
|
|
import cn.rtast.rob.onebot.MessageChain
|
|
import cn.rtast.rob.util.BaseCommand
|
|
|
|
@CommandDescription("资料卡点赞")
|
|
class SendLikeCommand : BaseCommand() {
|
|
override val commandNames = listOf("赞我")
|
|
|
|
override suspend fun executeGroup(message: GroupMessage, args: List<String>) {
|
|
message.action.sendLike(message.sender.userId, 10)
|
|
val msg = MessageChain.Builder()
|
|
.addText("👍了你十下~~😁")
|
|
.build()
|
|
message.reply(msg)
|
|
}
|
|
} |