diff options
| author | 2019-08-14 15:24:01 -0400 | |
|---|---|---|
| committer | 2019-08-14 15:24:01 -0400 | |
| commit | 119d542483f59d3f581b168854af9012208abf7d (patch) | |
| tree | 7706226d2e01cfb128a71d1ca52404a1246407e3 /bot/seasons/evergreen/issues.py | |
| parent | moved data grab to module level, changed var to constant (diff) | |
| parent | Merge pull request #257 from vivax3794/minesweeper-lenght-fix (diff) | |
Merge pull request #1 from python-discord/master
update
Diffstat (limited to 'bot/seasons/evergreen/issues.py')
| -rw-r--r-- | bot/seasons/evergreen/issues.py | 2 |
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}" |