diff options
| author | 2019-12-03 22:17:55 -0800 | |
|---|---|---|
| committer | 2019-12-03 22:17:55 -0800 | |
| commit | 8e21889d68be318c662a464ecaaeaf0bc1864424 (patch) | |
| tree | 15dc5c0860b2180d682f096df061360f468a5897 /bot/seasons/halloween/hacktoberstats.py | |
| parent | Readd user agent to request header (diff) | |
| parent | Merge pull request #308 from python-discord/dependabot/pip/pillow-6.2.0 (diff) | |
Merge branch 'master' into exclude-draft-prs
Diffstat (limited to 'bot/seasons/halloween/hacktoberstats.py')
| -rw-r--r-- | bot/seasons/halloween/hacktoberstats.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/halloween/hacktoberstats.py b/bot/seasons/halloween/hacktoberstats.py index ffcb6eaf..b7b4122d 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) |