mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -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:
|
for stream in self.streams:
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
|
is_rerun = False
|
||||||
|
is_schedule = False
|
||||||
if stream.__class__.__name__ == "TwitchStream":
|
if stream.__class__.__name__ == "TwitchStream":
|
||||||
await self.maybe_renew_twitch_bearer_token()
|
await self.maybe_renew_twitch_bearer_token()
|
||||||
embed, is_rerun = await stream.is_online()
|
embed, is_rerun = await stream.is_online()
|
||||||
@ -736,8 +738,6 @@ class Streams(commands.Cog):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
embed = await stream.is_online()
|
embed = await stream.is_online()
|
||||||
is_rerun = False
|
|
||||||
is_schedule = False
|
|
||||||
except OfflineStream:
|
except OfflineStream:
|
||||||
if not stream._messages_cache:
|
if not stream._messages_cache:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user