refactor: 审计api改为异步

This commit is contained in:
RockChinQ
2024-01-29 21:58:47 +08:00
parent 13ab647dc0
commit 3945ac95d1
10 changed files with 62 additions and 80 deletions

View File

@@ -54,7 +54,7 @@ class QQBotManager:
self.bot_account_id = self.adapter.bot_account_id
# 保存 account_id 到审计模块
from ..utils.center import apigroup
from ..audit.center import apigroup
apigroup.APIGroup._runtime_info['account_id'] = "{}".format(self.bot_account_id)
async def on_friend_message(event: FriendMessage):