We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
监听 MemberJoinEvent 无法得到任何触发,已尝试 PHONE、PAD、WATCH 三种协议,均存在问题。 相关代码如下:
MemberJoinEvent
// 自动通过申请,工作正常 bot.subscribeAlways<MemberJoinRequestEvent> { event -> if (event.groupId == GROUP_TEST) { event.accept() } } // 无法触发 bot.subscribeAlways<MemberJoinEvent> { event-> bot.logger.info("${event.member.nameCardOrNick}(${event.member.id})已加入群${event.group.name}") }
控制台输出:
2020-10-07 22:27:44 V/Bot 3100375360: Event: MemberJoinRequestEvent(bot=Bot(xxxxxx), eventId=1602080863993904, message=111, fromId=xxxxxxx, groupId=xxxxxx, groupName=测试群, fromNick=xxxxxx) 2020-10-07 22:27:44 V/Net 3100375360: Send: ProfileService.Pb.ReqSystemMsgAction.Group 2020-10-07 22:27:44 V/Net 3100375360: Recv: net.mamoe.mirai.qqandroid.network.protocol.data.jce.RequestPushNotify@7bbe86b6 2020-10-07 22:27:44 V/Net 3100375360: Send: MessageSvc.PbGetMsg 2020-10-07 22:27:44 D/Net 3100375360: Received unknown commandName: ProfileService.Pb.ReqSystemMsgAction.Group 2020-10-07 22:27:44 V/Net 3100375360: Send: OnlinePush.RespPush 2020-10-07 22:27:44 V/Net 3100375360: Send: MessageSvc.PbDeleteMsg 2020-10-07 22:27:53 V/Net 3100375360: Send: OnlinePush.RespPush 2020-10-07 22:28:29 V/Net 3100375360: Send: Heartbeat.Alive 2020-10-07 22:28:29 V/Net 3100375360: Recv: Heartbeat.Alive.Response
让一个账户申请加群即可。
mirai: 1.3.2
1.3.2
The text was updated successfully, but these errors were encountered:
可能与 #651 有关
Sorry, something went wrong.
请问在最新的2.0-RC中是否能够重现?
2.0-RC
我周末回家后测试下
45072c9
No branches or pull requests
监听
MemberJoinEvent
无法得到任何触发,已尝试 PHONE、PAD、WATCH 三种协议,均存在问题。相关代码如下:
控制台输出:
复现
让一个账户申请加群即可。
版本
mirai:
1.3.2
The text was updated successfully, but these errors were encountered: