-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
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
🐛 fix wrong length comparison #7
Conversation
你把check_reply放到check_atme前面 |
然后再看看要不要改这个len |
https://github.com/nonebot/adapter-red/blob/main/nonebot/adapters/red/bot.py#L22-L69 顺序确实有一定影响。不过主要问题是当收到一条仅由空格组成的消息时,由于元素列表长度为1,L37的条件通过,元素列表中唯一的元素被删除,此时再执行L49获取最后一个元素时会因元素列表为空报错。 |
不是定义顺序,是handleevent里面的顺序 |
|
另外你帮忙改一下逻辑 |
等等搞错了(( |
反正按ob适配器的处理方式来吧 |
https://github.com/nonebot/adapter-onebot/blob/master/nonebot/adapters/onebot/v12/bot.py#L62-L121 OneBot中使用 |
No description provided.