Merge pull request #476 from RockChinQ/hotfix-471-at-no-response-aft-reload

[Fix] 热重载之后不响应群内at
This commit is contained in:
Rock Chin
2023-05-21 15:12:43 +08:00
committed by GitHub

View File

@@ -128,6 +128,7 @@ class QQBotManager:
self.bot_account_id = self.adapter.bot_account_id self.bot_account_id = self.adapter.bot_account_id
else: else:
self.adapter = pkg.utils.context.get_qqbot_manager().adapter self.adapter = pkg.utils.context.get_qqbot_manager().adapter
self.bot_account_id = pkg.utils.context.get_qqbot_manager().bot_account_id
pkg.utils.context.set_qqbot_manager(self) pkg.utils.context.set_qqbot_manager(self)