lastfm gets disabled if the env keys arent there
This commit is contained in:
parent
f13a028ded
commit
ed7f0cca2d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
await bot.add_cog(LastFmCog(bot))
|
else:
|
||||||
|
await bot.add_cog(LastFmCog(bot))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue