diff options
author | 2021-03-27 18:17:26 +0100 | |
---|---|---|
committer | 2021-03-27 18:17:26 +0100 | |
commit | dfe0e6001d4c1886e29b20eafacf4de1cc3a938b (patch) | |
tree | caa09a752d73b854fb734d83ac24abd543ab9980 /bot/exts/evergreen/issues.py | |
parent | Merge pull request #635 from python-discord/remove-broken-link (diff) |
Allow automatic linking of issues everywhere
We have been limiting the channels where automatic linking issues can be used in (See #566).
Since we haven't seen any potential issue with it, we can allow it everywhere to avoid updating it every two days or because of missing channels.
Diffstat (limited to 'bot/exts/evergreen/issues.py')
-rw-r--r-- | bot/exts/evergreen/issues.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py index bbcbf611..6ca0c3c9 100644 --- a/bot/exts/evergreen/issues.py +++ b/bot/exts/evergreen/issues.py @@ -180,12 +180,6 @@ class Issues(commands.Cog): @commands.Cog.listener() async def on_message(self, message: discord.Message) -> None: """Command to retrieve issue(s) from a GitHub repository using automatic linking if matching <repo>#<issue>.""" - if not( - message.channel.category.id in WHITELISTED_CATEGORIES - or message.channel.id in WHITELISTED_CHANNELS_ON_MESSAGE - ): - return - message_repo_issue_map = re.findall(fr"({self.repo_regex})#(\d+)", message.content) links = [] |