-
|
如题,我想在启动时或断开连接时执行一些命令应该用什么函数 |
Beta Was this translation helpful? Give feedback.
Answered by
yanyongyu
Aug 2, 2022
Replies: 1 comment 1 reply
-
|
https://v2.nonebot.dev/docs/next/advanced/runtime-hook#bot-%E8%BF%9E%E6%8E%A5%E5%A4%84%E7%90%86
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Viottery
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://v2.nonebot.dev/docs/next/advanced/runtime-hook#bot-%E8%BF%9E%E6%8E%A5%E5%A4%84%E7%90%86
driver.on_bot_connect,driver.on_bot_disconnect