aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/issues.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/evergreen/issues.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/evergreen/issues.py')
-rw-r--r--bot/seasons/evergreen/issues.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/issues.py b/bot/seasons/evergreen/issues.py
index 438ab475..08d78e30 100644
--- a/bot/seasons/evergreen/issues.py
+++ b/bot/seasons/evergreen/issues.py
@@ -3,10 +3,11 @@ import logging
import discord
from discord.ext import commands
-from bot.constants import Colours
+from bot.constants import Channels, Colours, WHITELISTED_CHANNELS
from bot.decorators import override_in_channel
log = logging.getLogger(__name__)
+ISSUE_WHITELIST = WHITELISTED_CHANNELS + (Channels.seasonalbot_chat,)
class Issues(commands.Cog):
@@ -16,7 +17,7 @@ class Issues(commands.Cog):
self.bot = bot
@commands.command(aliases=("issues",))
- @override_in_channel()
+ @override_in_channel(ISSUE_WHITELIST)
async def issue(
self, ctx: commands.Context, number: int, repository: str = "seasonalbot", user: str = "python-discord"
) -> None: