From 3fdffa701716f1db4f4ddbfe65064a0c89aabe10 Mon Sep 17 00:00:00 2001 From: codey Date: Mon, 24 Feb 2025 07:29:26 -0500 Subject: [PATCH] bugfix: coffee --- cogs/misc.py | 2 +- cogs/radio.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cogs/misc.py b/cogs/misc.py index 1852690..625f07f 100644 --- a/cogs/misc.py +++ b/cogs/misc.py @@ -829,7 +829,7 @@ class Misc(commands.Cog): else: recipient = discord.utils.escape_mentions(recipient.strip()) try: - if "pudding" in recipient or recipient_id in [898332028007751741]: + if "pudding" in recipient or recipient_id and recipient_id in [898332028007751741]: recipient_allergic = True chosen_coffee: Optional[str] = self.util.get_coffee(recipient_allergic) if not chosen_coffee: diff --git a/cogs/radio.py b/cogs/radio.py index 18a471e..486241e 100644 --- a/cogs/radio.py +++ b/cogs/radio.py @@ -107,12 +107,12 @@ class Radio(commands.Cog): vc.play(source, # type: ignore after=lambda e: logging.info("Error: %s", e) if e\ else None) - # Get Now Playing - np_track: Optional[str] = await get_now_playing() - if np_track and not self.LAST_NP_TRACK == np_track: - self.LAST_NP_TRACK = np_track - if isinstance(vc.channel, discord.VoiceChannel): - await vc.channel.set_status(f"Now playing: {np_track}") + # Get Now Playing (disabled) + # np_track: Optional[str] = await get_now_playing() + # if np_track and not self.LAST_NP_TRACK == np_track: + # self.LAST_NP_TRACK = np_track + # if isinstance(vc.channel, discord.VoiceChannel): + # await vc.channel.set_status(f"Now playing: {np_track}") except: traceback.print_exc()