feat: refactor Radio cog and update dependencies

feat: update lyric commands to utilize discord's Components v2
This commit is contained in:
2025-10-08 15:45:38 -04:00
parent 80cc3dc1e8
commit 190eb8acd2
4 changed files with 455 additions and 63 deletions

View File

@@ -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))