[Streams] Initialize all variables (#4687)

This commit is contained in:
Lui
2020-12-24 06:43:05 -08:00
committed by GitHub
parent 67e776a640
commit 1bdaa9d95e

View File

@@ -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