使用mirai如何只想监听某一个群 #2559
Unanswered
yujumpjump
asked this question in
Q&A
Replies: 1 comment 3 replies
-
启动通道时判断一下不就可以了嘛 bot.getEventChannel().subscribeAlways(GroupMessageEvent.class, e ->
{
long id = e.getGroup().getId();
// 动态配置set
if (!listenGroupSet.contains(id)) {
return;
}
// ...
}
); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
使用mirai如何只想监听某一个群
Beta Was this translation helpful? Give feedback.
All reactions