diff options
author | 2019-08-13 20:04:10 -0400 | |
---|---|---|
committer | 2019-08-13 20:04:10 -0400 | |
commit | d2a8e1caf351601071f2a96715a7f9d95a1e69fb (patch) | |
tree | 3f94c3c965fc3a4d42b36dafeb9bab6abcaf3462 /bot/seasons/christmas/adventofcode.py | |
parent | Merge pull request #254 from jakeHebert/master (diff) | |
parent | Fix indent style and reduce logging message verbosity (diff) |
Merge pull request #251 from python-discord/seasonalbot-commands
Limit SeasonalBot commands to whitelisted channels
Diffstat (limited to 'bot/seasons/christmas/adventofcode.py')
-rw-r--r-- | bot/seasons/christmas/adventofcode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py index 08b07e83..a9e72805 100644 --- a/bot/seasons/christmas/adventofcode.py +++ b/bot/seasons/christmas/adventofcode.py @@ -14,6 +14,7 @@ from discord.ext import commands from pytz import timezone from bot.constants import AdventOfCode as AocConfig, Channels, Colours, Emojis, Tokens +from bot.decorators import override_in_channel log = logging.getLogger(__name__) @@ -125,6 +126,7 @@ class AdventOfCode(commands.Cog): self.status_task = asyncio.ensure_future(self.bot.loop.create_task(status_coro)) @commands.group(name="adventofcode", aliases=("aoc",), invoke_without_command=True) + @override_in_channel async def adventofcode_group(self, ctx: commands.Context): """All of the Advent of Code commands.""" await ctx.send_help(ctx.command) |