chore: format code
This commit is contained in:
7 files changed
+12
-7
No files matched your search
@@ -31,7 +31,12 @@ class AntiRevokeCommand : BaseCommand() {
|
||||
companion object {
|
||||
suspend fun getMessageCallback(listener: OBMessage, message: GetMessage) {
|
||||
val msgList = mutableListOf<ArrayMessage>()
|
||||
msgList.add(ArrayMessage(ArrayMessageType.at, ArrayMessage.Data(qq = message.data.sender.userId.toString())))
|
||||
msgList.add(
|
||||
ArrayMessage(
|
||||
ArrayMessageType.at,
|
||||
ArrayMessage.Data(qq = message.data.sender.userId.toString())
|
||||
)
|
||||
)
|
||||
msgList.add(ArrayMessage(ArrayMessageType.text, ArrayMessage.Data(text = "\n被撤回的消息如下: \n")))
|
||||
msgList.addAll(message.data.message)
|
||||
listener.sendGroupMessage(message.data.groupId!!, msgList)
|
||||
|
||||
@@ -11,7 +11,7 @@ import cn.rtast.rob.entity.GroupMessage
|
||||
import cn.rtast.rob.util.BaseCommand
|
||||
import cn.rtast.rob.util.ob.OBMessage
|
||||
|
||||
class EchoCommand: BaseCommand() {
|
||||
class EchoCommand : BaseCommand() {
|
||||
override val commandNames = listOf("/echo")
|
||||
|
||||
override suspend fun executeGroup(listener: OBMessage, message: GroupMessage, args: List<String>) {
|
||||
|
||||
@@ -14,7 +14,7 @@ import cn.rtast.rob.util.BaseCommand
|
||||
import cn.rtast.rob.util.ob.MessageChain
|
||||
import cn.rtast.rob.util.ob.OBMessage
|
||||
|
||||
class FKXQSCommand: BaseCommand() {
|
||||
class FKXQSCommand : BaseCommand() {
|
||||
override val commandNames = listOf("/fkxqs", "/fk", "/疯狂星期四")
|
||||
|
||||
override suspend fun executeGroup(listener: OBMessage, message: GroupMessage, args: List<String>) {
|
||||
|
||||
@@ -49,7 +49,7 @@ class RedeemCommand : BaseCommand() {
|
||||
listener.sendGroupMessage(message.groupId, msg)
|
||||
return
|
||||
}
|
||||
val selectedItemPrice =selectedItem.itemPrice
|
||||
val selectedItemPrice = selectedItem.itemPrice
|
||||
if (selectedItemPrice > status.points) {
|
||||
val msg = MessageChain.Builder()
|
||||
.addAt(message.sender.userId)
|
||||
|
||||
Reference in New Issue
Block a user