aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2019-10-03 20:11:59 +0200
committerGravatar Numerlor <[email protected]>2019-10-03 20:11:59 +0200
commitc2df3759d697db782f9553b7fdef646291f427e9 (patch)
tree5c14ad72b4804c368986cd5a37a414e58c791bce
parentMerge pull request #289 from Numerlor/channel_override_role_bypass_fix (diff)
limit issue command to global whitelist and seasonalbot_chat
-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: