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

26 lines
706 B
Kotlin
Raw Normal View History

2024-09-08 19:29:21 +08:00
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/8
*/
2024-09-20 16:30:33 +08:00
package cn.rtast.fancybot.commands.misc
2024-09-08 19:29:21 +08:00
import cn.rtast.fancybot.annotations.CommandDescription
2024-09-08 19:29:21 +08:00
import cn.rtast.rob.entity.GroupMessage
2024-11-08 20:59:51 +08:00
import cn.rtast.rob.onebot.MessageChain
2024-09-08 19:29:21 +08:00
import cn.rtast.rob.util.BaseCommand
@CommandDescription("资料卡点赞")
2024-10-01 18:54:25 +08:00
class SendLikeCommand : BaseCommand() {
2024-09-08 19:29:21 +08:00
override val commandNames = listOf("赞我")
2024-10-31 14:02:04 +08:00
override suspend fun executeGroup(message: GroupMessage, args: List<String>) {
message.action.sendLike(message.sender.userId, 10)
2024-09-08 19:29:21 +08:00
val msg = MessageChain.Builder()
.addText("👍了你十下~~😁")
.build()
2024-10-24 16:55:14 +08:00
message.reply(msg)
2024-09-08 19:29:21 +08:00
}
}