if theres no lastFM api keys or whatever just dont add it

This commit is contained in:
WhatDidYouExpect 2025-07-01 15:33:09 +02:00
parent b07d0ac669
commit 5e8cbb171d

View file

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