aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/issues.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-07 13:43:56 +0100
committerGravatar kwzrd <[email protected]>2020-03-07 13:43:56 +0100
commit7a72c353fcc95418ee46e045025150b1e78f7909 (patch)
tree5ae43e476bd9da9835e17c5829dc87bf132ed13b /bot/seasons/evergreen/issues.py
parentDeseasonify: load all extensions on start-up (diff)
parentMerge pull request #370 from python-discord/feat/deps/355/pep8-naming (diff)
Merge branch 'master' into seasonal-purge
Update the feature branch. This resolves a conflict in the season.py module, which has been since been deprecated and removed.
Diffstat (limited to 'bot/seasons/evergreen/issues.py')
-rw-r--r--bot/seasons/evergreen/issues.py5
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: