如何实现atMe触发功能? #1092
Answered
by
ryoii
AdorableParker
asked this question in
Q&A
如何实现atMe触发功能?
#1092
-
我目前是这样操作的,是否有更加合适的方法? this.globalEventChannel().subscribeAlways<GroupMessageEvent>(priority = EventPriority.LOWEST) {
if (group.botMuteRemaining > 0) return@subscribeAlways
if (message.serializeToMiraiCode().contains("[mirai:at:${MySetting.BotID}}]")){
TODO()
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
ryoii
Mar 13, 2021
Replies: 1 comment 6 replies
-
关于
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
AdorableParker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
关于
atBot