Merge branch 'master' of https://github.com/TheLonestar1/PythonBot
This commit is contained in:
@@ -190,7 +190,7 @@ class TwitchIRCClient:
|
|||||||
|
|
||||||
while duration == 0 or (datetime.now() - start_time).seconds < duration:
|
while duration == 0 or (datetime.now() - start_time).seconds < duration:
|
||||||
# === ПРОВЕРКА АКТИВНОСТИ ===
|
# === ПРОВЕРКА АКТИВНОСТИ ===
|
||||||
if is_active and not is_active():
|
if is_active and not is_active():
|
||||||
logger.info(f"⏸️ #{self.channel} paused, waiting for resume...")
|
logger.info(f"⏸️ #{self.channel} paused, waiting for resume...")
|
||||||
await self.disconnect()
|
await self.disconnect()
|
||||||
while is_active and not is_active():
|
while is_active and not is_active():
|
||||||
@@ -198,7 +198,7 @@ class TwitchIRCClient:
|
|||||||
logger.info(f"▶️ #{self.channel} resumed, reconnecting")
|
logger.info(f"▶️ #{self.channel} resumed, reconnecting")
|
||||||
await self.connect()
|
await self.connect()
|
||||||
last_message_time = datetime.now()
|
last_message_time = datetime.now()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Нет соединения — ждём перед повтором
|
# Нет соединения — ждём перед повтором
|
||||||
if not self._connected:
|
if not self._connected:
|
||||||
|
|||||||
Reference in New Issue
Block a user