Skip to content

Commit

Permalink
Ducks don't timeout anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpt-Dingus committed Sep 1, 2024
1 parent effa1eb commit a3a9a68
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions techsupport_bot/commands/duck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a3a9a68

Please sign in to comment.