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: Koishi进程意外终止并自动重启时,会重复播报上次使用 shutdown 指令重启后触发的“机器人已重新启动”消息 #1465

Open
DGCK81LNN opened this issue Oct 6, 2024 · 0 comments
Labels
bug BUG

Comments

@DGCK81LNN
Copy link
Contributor

DGCK81LNN commented Oct 6, 2024

Describe the bug

Koishi 进程被强制终止或因内存不足崩溃而自动重启时,会在上次使用 shutdown -r now 指令重启的频道再次发送“机器人已重新启动”消息。

Steps to reproduce

  1. 管理员在任一频道使用 shutdown -r now 指令重启 Koishi。观察到 bot 重启完成后在当前频道发送“机器人已重新启动。”
  2. 使用任务管理器或类似方式强制结束 Koishi 的 Node.js 进程。观察到 Koishi 自动重启后, bot 再次在同一频道发送“机器人已重新启动。”

Expected behavior

不应重复发送该提示信息。

Screenshots

No response

Versions

  • OS: Windows Server 2012
  • Platform: N/A
  • Node version: 20.15.0
  • Koishi version: 4.18.0

Additional context

No response

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

No branches or pull requests

1 participant