nonebot / adapter-qq

NoneBot2 QQ 适配器 / QQ adapter for nonebot2
MIT License
205 stars 18 forks source link

:bug: fix is_tome #68

Closed Dreamail closed 10 months ago

Dreamail commented 10 months ago

Is adapter-qqguild accepting new pr?

yanyongyu commented 10 months ago

to_me不是这么写的

Dreamail commented 10 months ago

to_me不是这么写的

参考adapter-onebot就是这么写的 以及我本地测试之前的写法把非at消息也识别成了tome消息 (但是我debug好久没看到在哪被设置的to_me = True

yanyongyu commented 10 months ago

当机器人被at的时候就会是true,判断函数在 https://github.com/nonebot/adapter-qq/blob/2b681c394c1dcce51811c706e24e98bbd0b66ed8/nonebot/adapters/qq/bot.py#L90-L162

Dreamail commented 10 months ago

我本地测试非at也会被识别为tome 测试过了在子频道里回复或不回复,at或不at,都被判断为tome

yanyongyu commented 10 months ago

那你提供一下事件的内容,或者你看看以上检查逻辑有什么问题

yanyongyu commented 10 months ago

如果还存在问题的话欢迎reopen或提供详细事件信息

Dreamail commented 10 months ago

咱最近不太有时间,可能周末会再来看看