diff options
| author | 2019-08-13 20:04:10 -0400 | |
|---|---|---|
| committer | 2019-08-13 20:04:10 -0400 | |
| commit | d2a8e1caf351601071f2a96715a7f9d95a1e69fb (patch) | |
| tree | 3f94c3c965fc3a4d42b36dafeb9bab6abcaf3462 /bot/seasons/evergreen/issues.py | |
| parent | Merge pull request #254 from jakeHebert/master (diff) | |
| parent | Fix indent style and reduce logging message verbosity (diff) | |
Merge pull request #251 from python-discord/seasonalbot-commands
Limit SeasonalBot commands to whitelisted channels
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}" |