From 5e8cbb171d362781180bd04639796879a419c7fb Mon Sep 17 00:00:00 2001 From: WhatDidYouExpect <89535984+WhatDidYouExpect@users.noreply.github.com> Date: Tue, 1 Jul 2025 15:33:09 +0200 Subject: [PATCH] if theres no lastFM api keys or whatever just dont add it --- cogs/lastfm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/lastfm.py b/cogs/lastfm.py index 949f09f..75ea984 100644 --- a/cogs/lastfm.py +++ b/cogs/lastfm.py @@ -78,4 +78,6 @@ class LastFmCog(commands.Cog): return None async def setup(bot): + if not LASTFM_API_KEY and LASTFM_USERNAME: + return await bot.add_cog(LastFmCog(bot))