From 32e2a7830a20eb9d262e4a75094135eedeebb00b Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 17 Aug 2024 03:20:08 -0400 Subject: [PATCH] feat: Add timeout parameter to QQOfficial bot client initialization --- model/platform/qq_official.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/model/platform/qq_official.py b/model/platform/qq_official.py index cc9762c09..d0420263c 100644 --- a/model/platform/qq_official.py +++ b/model/platform/qq_official.py @@ -81,7 +81,8 @@ class QQOfficial(Platform): ) self.client = botClient( intents=self.intents, - bot_log=False + bot_log=False, + timeout=20, ) self.client.set_platform(self) @@ -178,7 +179,8 @@ class QQOfficial(Platform): logger.error(traceback.format_exc()) self.client = botClient( intents=self.intents, - bot_log=False + bot_log=False, + timeout=20, ) self.client.set_platform(self) return self.client.start(