From 36de5c6d40d8609d70b181fc3ca75ee26b6138c7 Mon Sep 17 00:00:00 2001 From: dnns01 <github@dnns01.de> Date: Fri, 26 Aug 2022 22:46:23 +0200 Subject: [PATCH] Made link protection working again, but with deleting messages instead of timing out a user --- requirements.txt | 6 +++--- twitchbot/link_protection.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 18115fc..01126a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ aiohttp==3.7.4 -asgiref==3.4.1 +asgiref==3.5.2 async-timeout==3.0.1 attrs==20.3.0 certifi==2020.12.5 chardet==3.0.4 charset-normalizer==2.0.12 -Django==4.0.7 +Django==4.1 fontawesome-free==5.15.1 gql==2.0.0 graphql-core==2.3.2 @@ -19,7 +19,7 @@ requests==2.25.1 Rx==1.6.1 six==1.16.0 sqlparse==0.4.2 -twitchio==2.2.0 +twitchio==2.4.0 typing-extensions==3.7.4.3 urllib3==1.26.5 websockets==9.1 diff --git a/twitchbot/link_protection.py b/twitchbot/link_protection.py index 3053d30..bc07b44 100644 --- a/twitchbot/link_protection.py +++ b/twitchbot/link_protection.py @@ -71,7 +71,7 @@ class LinkProtection(commands.Cog): return # Ok, we reached this point! Time for action!!! - await message.channel.timeout(message.author.name, 1) + await message.channel.send(f"/delete {message.id}") def is_user_whitelisted(self, user): if self.has_user_permanent_permit(user): -- GitLab