Skip to content

Your lightweight open-source personal agent.

fix(qq): make start() long-running per base channel contract

andienguyen-ecoligo8c55b40b9f38
diff --git a/nanobot/channels/qq.py b/nanobot/channels/qq.py
index 16cbfb860..a940a7557 100644
--- a/nanobot/channels/qq.py
+++ b/nanobot/channels/qq.py
@@ -71,8 +71,8 @@ class QQChannel(BaseChannel):
BotClass = _make_bot_class(self)
self._client = BotClass()
- self._bot_task = asyncio.create_task(self._run_bot())
logger.info("QQ bot started (C2C private message)")
+ await self._run_bot()
async def _run_bot(self) -> None:
"""Run the bot connection with auto-reconnect."""