mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[Streams] Initialize all variables (#4687)
This commit is contained in:
parent
67e776a640
commit
1bdaa9d95e
@ -727,6 +727,8 @@ class Streams(commands.Cog):
|
||||
for stream in self.streams:
|
||||
try:
|
||||
try:
|
||||
is_rerun = False
|
||||
is_schedule = False
|
||||
if stream.__class__.__name__ == "TwitchStream":
|
||||
await self.maybe_renew_twitch_bearer_token()
|
||||
embed, is_rerun = await stream.is_online()
|
||||
@ -736,8 +738,6 @@ class Streams(commands.Cog):
|
||||
|
||||
else:
|
||||
embed = await stream.is_online()
|
||||
is_rerun = False
|
||||
is_schedule = False
|
||||
except OfflineStream:
|
||||
if not stream._messages_cache:
|
||||
continue
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user