bugfix: coffee
This commit is contained in:
parent
c682421570
commit
3fdffa7017
@ -829,7 +829,7 @@ class Misc(commands.Cog):
|
|||||||
else:
|
else:
|
||||||
recipient = discord.utils.escape_mentions(recipient.strip())
|
recipient = discord.utils.escape_mentions(recipient.strip())
|
||||||
try:
|
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
|
recipient_allergic = True
|
||||||
chosen_coffee: Optional[str] = self.util.get_coffee(recipient_allergic)
|
chosen_coffee: Optional[str] = self.util.get_coffee(recipient_allergic)
|
||||||
if not chosen_coffee:
|
if not chosen_coffee:
|
||||||
|
@ -107,12 +107,12 @@ class Radio(commands.Cog):
|
|||||||
vc.play(source, # type: ignore
|
vc.play(source, # type: ignore
|
||||||
after=lambda e: logging.info("Error: %s", e) if e\
|
after=lambda e: logging.info("Error: %s", e) if e\
|
||||||
else None)
|
else None)
|
||||||
# Get Now Playing
|
# Get Now Playing (disabled)
|
||||||
np_track: Optional[str] = await get_now_playing()
|
# np_track: Optional[str] = await get_now_playing()
|
||||||
if np_track and not self.LAST_NP_TRACK == np_track:
|
# if np_track and not self.LAST_NP_TRACK == np_track:
|
||||||
self.LAST_NP_TRACK = np_track
|
# self.LAST_NP_TRACK = np_track
|
||||||
if isinstance(vc.channel, discord.VoiceChannel):
|
# if isinstance(vc.channel, discord.VoiceChannel):
|
||||||
await vc.channel.set_status(f"Now playing: {np_track}")
|
# await vc.channel.set_status(f"Now playing: {np_track}")
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user