feat: Adjust connect to live room interval support

This commit is contained in:
LWR
2023-06-18 00:33:54 +08:00
parent dc9e2bdf48
commit 55ce0f3128
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -111,10 +111,11 @@ class StarBot:
await redis.set_live_start_time(up.room_id, start_time)
# 连接直播间
interval = config.get("CONNECTION_INTERVAL")
for up in self.__datasource.get_up_list():
try:
await up.connect()
await asyncio.sleep(0.2)
await asyncio.sleep(interval)
except LiveException as ex:
logger.error(ex.msg)
if len(self.__datasource.get_up_list()) > 0: