diff options
Diffstat (limited to 'bot/exts/holidays')
| -rw-r--r-- | bot/exts/holidays/halloween/scarymovie.py | 3 | ||||
| -rw-r--r-- | bot/exts/holidays/halloween/spookygif.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bot/exts/holidays/halloween/scarymovie.py b/bot/exts/holidays/halloween/scarymovie.py index 00c96153..fbab3dd2 100644 --- a/bot/exts/holidays/halloween/scarymovie.py +++ b/bot/exts/holidays/halloween/scarymovie.py @@ -135,4 +135,7 @@ class ScaryMovie(commands.Cog): async def setup(bot: Bot) -> None: """Load the Scary Movie Cog.""" + if not Tokens.tmdb: + log.warning("No TMDB Token. Not loading ScaryMovie Cog.") + return await bot.add_cog(ScaryMovie(bot)) diff --git a/bot/exts/holidays/halloween/spookygif.py b/bot/exts/holidays/halloween/spookygif.py index 7a90a8a9..41488678 100644 --- a/bot/exts/holidays/halloween/spookygif.py +++ b/bot/exts/holidays/halloween/spookygif.py @@ -35,4 +35,7 @@ class SpookyGif(commands.Cog): async def setup(bot: Bot) -> None: """Spooky GIF Cog load.""" + if not Tokens.giphy: + log.warning("No Giphy token. Not loading Giphy cog.") + return await bot.add_cog(SpookyGif(bot)) |