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

20 lines
511 B
Kotlin
Raw Normal View History

2024-08-27 18:44:32 +08:00
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/8/27
*/
package cn.rtast.fancybot.commands
import cn.rtast.rob.entity.GroupMessage
import cn.rtast.rob.util.BaseCommand
import cn.rtast.rob.util.ob.OneBotListener
2024-08-27 18:44:32 +08:00
2024-09-03 16:41:06 +08:00
class EchoCommand : BaseCommand() {
2024-08-30 15:05:51 +08:00
override val commandNames = listOf("/echo")
2024-08-27 18:44:32 +08:00
override suspend fun executeGroup(listener: OneBotListener, message: GroupMessage, args: List<String>) {
2024-08-27 18:44:32 +08:00
listener.sendGroupMessage(message.groupId, args.joinToString(" "))
}
}