feat: 恢复nakuru使用

This commit is contained in:
RockChinQ
2024-02-08 13:12:33 +08:00
parent d86ad25f86
commit f9a3e99795
8 changed files with 123 additions and 59 deletions
+1 -1
View File
@@ -191,6 +191,7 @@ class AiocqhttpEventConverter(adapter.EventConverter):
)
@adapter.adapter_class("aiocqhttp")
class AiocqhttpAdapter(adapter.MessageSourceAdapter):
bot: aiocqhttp.CQHttp
@@ -243,7 +244,6 @@ class AiocqhttpAdapter(adapter.MessageSourceAdapter):
):
async def on_message(event: aiocqhttp.Event):
self.bot_account_id = event.self_id
self.ap.im_mgr.bot_account_id = event.self_id
try:
return await callback(self.event_converter.target2yiri(event))
except: