Answer the question
In order to leave comments, you need to log in
How to make cooldown display besides seconds?
I have commands, somewhere cooldown for a few seconds, and somewhere for hours, days (only with the help of seconds, because I don’t know how to make it more convenient). How to make cooldown display time in seconds, minutes, hours and days?
Example: 1 hour 30 minutes left, 1 day 20 hours left, 20 seconds left, etc.
cooldown:
@commands.cooldown(1, 10, commands.BucketType.user)
elif isinstance(error, commands.CommandOnCooldown):
await ctx.reply(f"Команду можно будет использовать повторно через `{error.retry_after :.0f} секунд`")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question