feat: add ascii art upload to image bed

This commit is contained in:
2024-10-11 13:47:26 +08:00
parent 7fda4dc333
commit ccb72a7277
3 files changed
+22 -14

No files matched your search

@@ -173,15 +173,13 @@ class FancyBot : OneBotListener {
this.sendGroupMessage(groupId, msg)
}
override suspend fun onPoke(event: PokeEvent) {
event.groupId?.let {
if (event.targetId == configManager.selfId) {
val msg = MessageChain.Builder()
.addAt(event.userId)
.addText("${event.action.first()}牛魔呢")
.build()
this.sendGroupMessage(it, msg)
}
override suspend fun onGroupPoke(event: PokeEvent) {
if (event.targetId == configManager.selfId) {
val msg = MessageChain.Builder()
.addAt(event.userId)
.addText("${event.action.first()}牛魔呢")
.build()
this.sendGroupMessage(event.groupId!!, msg)
}
}
}