Skip to content
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

点赞功能bug #60

Closed
Tosd0 opened this issue Nov 6, 2023 · 6 comments
Closed

点赞功能bug #60

Tosd0 opened this issue Nov 6, 2023 · 6 comments

Comments

@Tosd0
Copy link
Contributor

Tosd0 commented Nov 6, 2023

今天通过+快速点赞的时候发现有的时候点不上,想了一下应该是这个原因。
2n (n \in Z)次捡漂流瓶(此时触发got),第2n+1次也捡漂流瓶(此时got结束,block设置为False就没有got了)
2n+2次输入+就不会有反应了

@Tosd0
Copy link
Contributor Author

Tosd0 commented Nov 6, 2023

IMG_5309

@LambdaYH
Copy link
Collaborator

LambdaYH commented Nov 6, 2023

虽然有办法替代block,但是block应该只影响事件传递,不会阻碍事件的触发

(有日志吗

@Tosd0
Copy link
Contributor Author

Tosd0 commented Nov 6, 2023

2n

11-06 19:30:06�[SUCCESS] nonebot�| OneBot V11�| [message.group.normal]: Message 2078710274 From@[群:] '.捡漂流瓶'
11-06 19:30:06�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56)
11-06 19:30:06�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) running complete
11-06 19:30:06�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18)
11-06 19:30:06�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16)
11-06 19:30:06�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running is cancelled
11-06 19:30:06�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) running is cancelled
11-06 19:30:07�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_bottle, lineno=72)

2n+1

11-06 19:30:45�[SUCCESS] nonebot�| OneBot V11�| [message.group.normal]: Message -1836761289 from@[群:] '.捡漂流瓶'
11-06 19:30:45�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_bottle, lineno=72)
11-06 19:30:45�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_bottle, lineno=72) running complete
11-06 19:30:45�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56)
11-06 19:30:45�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) running complete
11-06 19:30:45�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18)
11-06 19:30:45�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16)
11-06 19:30:45�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running is cancelled
11-06 19:30:45�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) running is cancelled
11-06 19:30:45�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_bottle, lineno=72)
11-06 19:30:47�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_bottle, lineno=72) running complete

2n+2

11-06 19:31:09�[SUCCESS] nonebot�| OneBot V11�| [message.group.normal]: Message 2089508379 from@[群:] '+'
11-06 19:31:09�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56)
11-06 19:31:09�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.word_analyze, lineno=56) running complete
11-06 19:31:09�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18)
11-06 19:31:09�[INFO] nonebot�| Event will be handled by Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16)
11-06 19:31:09�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.auto_ban, lineno=18) running is cancelled
11-06 19:31:09�[INFO] nonebot�| Matcher(type='message', module=nonebot_plugin_admin.img_check, lineno=16) running is cancelled

@Tosd0
Copy link
Contributor Author

Tosd0 commented Nov 6, 2023

2n+1次它直接就running complete了而没有留到下一次

@LambdaYH
Copy link
Collaborator

LambdaYH commented Nov 6, 2023

试试新版,这种就是会导致日志里出现同消息的两个响应

@Tosd0
Copy link
Contributor Author

Tosd0 commented Nov 6, 2023

试试新版,这种就是会导致日志里出现同消息的两个响应

修复啦
能用就行(?)日志什么的 反正后台已经够乱了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants