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

机器人下线之后重新登录不能正常运转 #206

Open
chouchouji opened this issue May 11, 2022 · 2 comments
Open

机器人下线之后重新登录不能正常运转 #206

chouchouji opened this issue May 11, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@chouchouji
Copy link

机器人由于被挤下线之后,触发监听事件,参照autoRelogin中间件的方法,重新登录之后,仍然无法正常运作

@Drincann Drincann self-assigned this May 11, 2022
@Drincann Drincann added the bug Something isn't working label May 11, 2022
@Mantou1233
Copy link
Contributor

同。

@Drincann
Copy link
Owner

该中间件依赖于 Bot.sendCommand 接口,而 mirai-api-http 的 /sendCommand 接口在 v2 中的行为有所改变, 它要求提供一个 sessionKey,即我们需要先建立一个有效会话,才能调用该接口。

如果会话已经失效,就无法正常使用该接口,从而令中间件失效。

我会做些测试,可能会在之后移除该 API。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants