refactor: yirimirai 适配器实现异步

This commit is contained in:
RockChinQ
2024-01-23 22:28:30 +08:00
parent 8d35ecd711
commit ad5ef95e65
8 changed files with 88 additions and 62 deletions
+3
View File
@@ -324,5 +324,8 @@ class NakuruProjectAdapter(adapter_model.MessageSourceAdapter):
asyncio.set_event_loop(loop)
self.bot.run()
async def run_async(self):
return await self.bot._run()
def kill(self) -> bool:
return False