mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
Add responses
This commit is contained in:
parent
ed730b1472
commit
32353e53cf
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ class Moderation(commands.Cog):
|
|||
await ctx.reply("Invalid time.")
|
||||
return
|
||||
|
||||
await member.timeout(timedelta(**{times[duration[-1]]: time}), reason=f"Timed out by moderator {ctx.author}")
|
||||
clean_time_name = times[duration[-1]]
|
||||
await member.timeout(timedelta(**{clean_time_name: time}), reason=f"Timed out by moderator {ctx.author}")
|
||||
await ctx.send(f"Timed out {member.mention} for {time} {clean_time_name}.")
|
||||
|
||||
|
||||
async def setup(bot: MinearchyBot) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue