lastfm gets disabled if the env keys arent there

This commit is contained in:
WhatDidYouExpect 2025-07-06 22:04:15 +02:00
parent f13a028ded
commit ed7f0cca2d

View file

@ -78,6 +78,7 @@ class LastFmCog(commands.Cog):
return None return None
async def setup(bot): async def setup(bot):
if not LASTFM_API_KEY and LASTFM_USERNAME: if not LASTFM_API_KEY or not LASTFM_USERNAME:
return return
else:
await bot.add_cog(LastFmCog(bot)) await bot.add_cog(LastFmCog(bot))