diff options
author | 2020-03-20 18:16:44 -0400 | |
---|---|---|
committer | 2020-03-20 18:16:44 -0400 | |
commit | 55aac3508b30ffbb26a74372f958bc526a9773fc (patch) | |
tree | 620601201c74a56f71dda42cfd73823002fe6311 /bot/seasons/evergreen/issues.py | |
parent | Battleships - change hard-coded strings in subcommand (diff) | |
parent | Merge pull request #373 from python-discord/python38 (diff) |
Merge branch 'master' into battleships
Diffstat (limited to 'bot/seasons/evergreen/issues.py')
-rw-r--r-- | bot/seasons/evergreen/issues.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/issues.py b/bot/seasons/evergreen/issues.py index c7501a5d..fba5b174 100644 --- a/bot/seasons/evergreen/issues.py +++ b/bot/seasons/evergreen/issues.py @@ -3,11 +3,10 @@ import logging import discord from discord.ext import commands -from bot.constants import Channels, Colours, Emojis, WHITELISTED_CHANNELS +from bot.constants import Colours, Emojis, WHITELISTED_CHANNELS from bot.decorators import override_in_channel log = logging.getLogger(__name__) -ISSUE_WHITELIST = WHITELISTED_CHANNELS + (Channels.seasonalbot_chat,) BAD_RESPONSE = { 404: "Issue/pull request not located! Please enter a valid number!", @@ -22,7 +21,7 @@ class Issues(commands.Cog): self.bot = bot @commands.command(aliases=("pr",)) - @override_in_channel(ISSUE_WHITELIST) + @override_in_channel(WHITELISTED_CHANNELS) async def issue( self, ctx: commands.Context, number: int, repository: str = "seasonalbot", user: str = "python-discord" ) -> None: |