1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 08:57:46 +00:00

Add responses

This commit is contained in:
RGBCube 2022-07-25 15:51:41 +03:00
parent ed730b1472
commit 32353e53cf

View file

@ -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: