bugfix: coffee
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user