so I did a bit of research on how to make a feature like this and this is what I came up with:
@bot.command()
@commands.cooldown(1, 30, commands.BucketType.user)
async def test(ctx):
try:
await ctx.send("Success")
except commands.errors.CommandOnCooldown:
await ctx.send("This command is on cooldown")
What is the best way to make the bot send something like this:
"You are on cooldown, try again in 26s"? I attempted to do this in the line except commands.errors.CommandOnCooldown: but this does not work.
Any help greatly appreciated