mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -108,8 +108,8 @@ class TwitchService:
|
||||
if current_state is None:
|
||||
raise RuntimeError("State is None")
|
||||
|
||||
if (datetime.now() - current_state.last_live_at).seconds > 60:
|
||||
raise RuntimeError("State is not live")
|
||||
if (datetime.now() - current_state.last_live_at).seconds >= self.ONLINE_NOTIFICATION_DELAY:
|
||||
return
|
||||
|
||||
streamer = self.get_streamer_config(streamer_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user