feat: Add timeout parameter to QQOfficial bot client initialization

This commit is contained in:
Soulter
2024-08-17 03:20:08 -04:00
parent 6992249e53
commit 32e2a7830a
+4 -2
View File
@@ -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(