aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/hacktoberstats.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-10-14 09:02:39 +0200
committerGravatar GitHub <[email protected]>2019-10-14 09:02:39 +0200
commitc3dd57e8eae23eb432e87c1a8dc258d60f3bf807 (patch)
treee83e6e579f8ab57288c30d6618cdd3cdd0c8c50d /bot/seasons/halloween/hacktoberstats.py
parentMerge pull request #296 from vivax3794/hacktober-issue-finder (diff)
parentMerge branch 'master' into limit-command-channels (diff)
Merge pull request #294 from Numerlor/limit-command-channels
Limit the issue and AoC commands to a superset of the global whitelist instead of bypassing it entirely
Diffstat (limited to 'bot/seasons/halloween/hacktoberstats.py')
-rw-r--r--bot/seasons/halloween/hacktoberstats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/halloween/hacktoberstats.py b/bot/seasons/halloween/hacktoberstats.py
index 9ad44e3f..ab8d865c 100644
--- a/bot/seasons/halloween/hacktoberstats.py
+++ b/bot/seasons/halloween/hacktoberstats.py
@@ -58,6 +58,7 @@ class HacktoberStats(commands.Cog):
await self.get_stats(ctx, github_username)
@hacktoberstats_group.command(name="link")
+ @override_in_channel(HACKTOBER_WHITELIST)
async def link_user(self, ctx: commands.Context, github_username: str = None) -> None:
"""
Link the invoking user's Github github_username to their Discord ID.
@@ -91,6 +92,7 @@ class HacktoberStats(commands.Cog):
await ctx.send(f"{author_mention}, a GitHub username is required to link your account")
@hacktoberstats_group.command(name="unlink")
+ @override_in_channel(HACKTOBER_WHITELIST)
async def unlink_user(self, ctx: commands.Context) -> None:
"""Remove the invoking user's account link from the log."""
author_id, author_mention = HacktoberStats._author_mention_from_context(ctx)