mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
feat: 增加!version指令
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user