aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/events/hacktoberfest/hacktoberstats.py
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2023-05-06 17:19:28 +0100
committerGravatar GitHub <[email protected]>2023-05-06 17:19:28 +0100
commit56cefe8f3e1ec4ca6c0cb26a64c2a13d146d6448 (patch)
treeb6a35a1504df0f0a9bd9f5bfc2edfde0d8948f05 /bot/exts/events/hacktoberfest/hacktoberstats.py
parentuse the new code jam variable (#1267) (diff)
parentUpdate bot/exts/holidays/halloween/spookygif.py (diff)
Merge pull request #1269 from shtlrs/load-cogs-when-config-is-setup
Run null check on needed API keys before loading cogs.
Diffstat (limited to 'bot/exts/events/hacktoberfest/hacktoberstats.py')
-rw-r--r--bot/exts/events/hacktoberfest/hacktoberstats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/events/hacktoberfest/hacktoberstats.py b/bot/exts/events/hacktoberfest/hacktoberstats.py
index 0b4266d8..5bfac93f 100644
--- a/bot/exts/events/hacktoberfest/hacktoberstats.py
+++ b/bot/exts/events/hacktoberfest/hacktoberstats.py
@@ -434,4 +434,6 @@ class HacktoberStats(commands.Cog):
async def setup(bot: Bot) -> None:
"""Load the Hacktober Stats Cog."""
+ if not Tokens.github:
+ log.warning("No GitHub token was provided. The HacktoberStats Cog won't be fully functional.")
await bot.add_cog(HacktoberStats(bot))