From dfe0e6001d4c1886e29b20eafacf4de1cc3a938b Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Sat, 27 Mar 2021 18:17:26 +0100 Subject: 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. --- bot/exts/evergreen/issues.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bot/exts/evergreen/issues.py') 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 #.""" - 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 = [] -- cgit v1.2.3