From 881c900e6d9d8b3f7a6f9153a14030494056a4df Mon Sep 17 00:00:00 2001 From: Funky Waddle Date: Sun, 29 Jun 2025 02:18:23 -0500 Subject: [PATCH] Modify debug output of twitch notifications cog --- cogs/twitch_notifications.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cogs/twitch_notifications.py b/cogs/twitch_notifications.py index a6f0aae..8bb958e 100644 --- a/cogs/twitch_notifications.py +++ b/cogs/twitch_notifications.py @@ -21,7 +21,7 @@ class TwitchNotificationsCog(Cog): @commands.Cog.listener() async def on_ready(self): await self.load_config() - self.guild = await Guilds().get_guild(self.bot) + self.guild = Guilds().get_guild(self.bot) self.twitch = Twitch(self.config[self.guild.name]["twitch"]["client_id"], self.config[self.guild.name]["twitch"]["client_secret"]) await self.set_access_token_and_expires_date() await self.set_notification_channel_and_purge_channel() @@ -62,13 +62,12 @@ class TwitchNotificationsCog(Cog): async def check_twitch_online_streamers(self): print("Online streamers are checked") channel = await Channels().get_channel(self.guild, self.config[self.guild.name]["twitch"]["channel_name"]) - print(channel) if not channel: return watchlist_notifications = self.bot.db.session.query(TwitchLiveNotification).all() watchlist = [notify.username for notify in watchlist_notifications] - print("WATCHLIST", watchlist) + print("Twitch Watchlist: ", watchlist) online_notifications, offline_notifications = await self.twitch.get_notifications(watchlist) print("online_notifications", online_notifications)