From a3a9a6876ac86830489f6294f04a9a32a0e3f605 Mon Sep 17 00:00:00 2001 From: Cpt-Dingus <100243410+Cpt-Dingus@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:44:11 +0200 Subject: [PATCH] Ducks don't timeout anymore --- techsupport_bot/commands/duck.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/techsupport_bot/commands/duck.py b/techsupport_bot/commands/duck.py index 1f7cdfe2..ba6ea69d 100644 --- a/techsupport_bot/commands/duck.py +++ b/techsupport_bot/commands/duck.py @@ -380,17 +380,7 @@ def message_check( f"seconds. Time would have been {duration_exact} seconds" ) ) - # Only attempt timeout if we know we can do it - if ( - channel.guild.me.top_role > message.author.top_role - and channel.guild.me.guild_permissions.moderate_members - ): - asyncio.create_task( - message.author.timeout( - timedelta(seconds=config.extensions.duck.cooldown.value), - reason="Missed a duck", - ) - ) + asyncio.create_task( message.channel.send( content=message.author.mention,