mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
fix: 不正确的配置项验证
This commit is contained in:
@@ -262,7 +262,7 @@ class QQBotManager:
|
||||
|
||||
# 通知系统管理员
|
||||
def notify_admin(self, message: str):
|
||||
if config.admin_qq is not None and config.admin_qq != 0:
|
||||
if hasattr(config, "admin_qq") and config.admin_qq != 0:
|
||||
send_task = self.bot.send_friend_message(config.admin_qq, "[bot]{}".format(message))
|
||||
threading.Thread(target=asyncio.run, args=(send_task,)).start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user