feat: refactor Radio cog and update dependencies
feat: update lyric commands to utilize discord's Components v2
This commit is contained in:
@@ -25,7 +25,11 @@ async def get_now_playing() -> Optional[str]:
|
||||
) as request:
|
||||
request.raise_for_status()
|
||||
response_json = await request.json()
|
||||
artistsong = response_json.get("artistsong")
|
||||
artistsong: str = "N/A - N/A"
|
||||
artist: Optional[str] = response_json.get("artist")
|
||||
song: Optional[str] = response_json.get("song")
|
||||
if artist and song:
|
||||
artistsong = f"{artist} - {song}"
|
||||
return artistsong
|
||||
except Exception as e:
|
||||
logging.critical("Now playing retrieval failed: %s", str(e))
|
||||
|
Reference in New Issue
Block a user