Reboot your bot by using command
Project description
Nonebot-plugin-reboot
用命令重启 bot
注意事项
不支持 nb-cli
,即 nb run
启动方式。
需要在 bot 目录下使用 python bot.py
启动。
仅在 linux
python3.8
fastapi
驱动器下测试过。
理论上与平台无关,但是我没测试(
安装
通过 pip 安装:
pip install nonebot-plugin-reboot
并加载插件
使用
超级用户向机器人私聊发送命令 重启
, reboot
或 restart
注意命令 COMMAND_START
.
配置项
reboot_load_command
: bool
- 加载内置的
onebot v11
重启命令 - 可以通过命令
重启
reboot
restart
触发重启 - 默认值:
True
用程序触发重启
from nonebot_plugin_reboot import Reloader
Reloader.reload()
依赖
nonebot2 >= 2.0.0beta.2
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_reboot-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3071582402f59ea1b77feaac9a5645a1659678da6475048dd6e4b10820feb1db |
|
MD5 | de2fc83baba63c90f739df2cda18c051 |
|
BLAKE2b-256 | 77c443369310ed85ba4e720b3418c01283e849d53e9580a07222beffda391415 |
Close
Hashes for nonebot_plugin_reboot-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dc61b4397d6cc587ad4450c4c3d9016c38f5720d1d8b722210c0395b3823a49 |
|
MD5 | 326776395a64897b0538d565eaddf992 |
|
BLAKE2b-256 | 87a74150ebec40972fd8ac6774dbc9b17337ae9de6d2ef5ca362caa5dd4e43b0 |