feat: add reaction
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
[versions]
|
||||
kotlinVersion = "2.0.10"
|
||||
ronebotVersion = "1.12.0"
|
||||
ronebotVersion = "1.12.1"
|
||||
shadowVersion = "8.3.0"
|
||||
okhttpVersion = "5.0.0-alpha.14"
|
||||
exposedVersion = "0.53.0"
|
||||
|
||||
@@ -15,6 +15,7 @@ import cn.rtast.rob.entity.*
|
||||
import cn.rtast.rob.entity.lagrange.FileEvent
|
||||
import cn.rtast.rob.entity.lagrange.PokeEvent
|
||||
import cn.rtast.rob.enums.ArrayMessageType
|
||||
import cn.rtast.rob.enums.QQFace
|
||||
import cn.rtast.rob.util.ob.MessageChain
|
||||
import cn.rtast.rob.util.ob.OneBotListener
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
@@ -44,6 +45,9 @@ class FancyBot : OneBotListener {
|
||||
}
|
||||
|
||||
if (message.rawMessage.contains("原神")) {
|
||||
(0..30).forEach { _ ->
|
||||
message.reaction(QQFace.entries.random())
|
||||
}
|
||||
message.reply("你原神牛魔呢")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user