aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/issues.py
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2019-08-06 00:39:25 +0800
committerGravatar kosayoda <[email protected]>2019-08-06 00:39:25 +0800
commitef95acda7c8511de52d125d6f355be89984b1bfe (patch)
tree12c4ef87bcec20e01a73470146fb2a334b980f9a /bot/seasons/evergreen/issues.py
parentAdd global check to SeasonalBot (diff)
Implement error handling; add `in_channel` overrides to `!issue` and AoC commands
Diffstat (limited to 'bot/seasons/evergreen/issues.py')
-rw-r--r--bot/seasons/evergreen/issues.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/seasons/evergreen/issues.py b/bot/seasons/evergreen/issues.py
index 2a31a2e1..f19a1129 100644
--- a/bot/seasons/evergreen/issues.py
+++ b/bot/seasons/evergreen/issues.py
@@ -4,6 +4,7 @@ import discord
from discord.ext import commands
from bot.constants import Colours
+from bot.decorators import override_in_channel
log = logging.getLogger(__name__)
@@ -15,6 +16,7 @@ class Issues(commands.Cog):
self.bot = bot
@commands.command(aliases=("issues",))
+ @override_in_channel
async def issue(self, ctx, number: int, repository: str = "seasonalbot", user: str = "python-discord"):
"""Command to retrieve issues from a GitHub repository."""
api_url = f"https://api.github.com/repos/{user}/{repository}/issues/{number}"