feat: 增加!version指令

This commit is contained in:
Rock Chin
2023-01-05 15:34:14 +08:00
parent 35854bc81c
commit 3dec627d40
2 changed files with 27 additions and 0 deletions

View File

@@ -242,6 +242,8 @@ def process_message(launcher_type: str, launcher_id: int, text_message: str, mes
if not (hasattr(config, 'include_image_description')
and not config.include_image_description):
reply.append(" ".join(params))
elif cmd == 'version':
reply = ["[bot]当前版本:\n{}".format(pkg.utils.updater.get_current_version_info())]
elif cmd == 'reload' and launcher_type == 'person' and launcher_id == config.admin_qq:
def reload_task():
pkg.utils.reloader.reload_all()