@Bot.command(aliases=["cd", "c"])
async def cooldown(ctx):
claim_c = Bot.get_command("claim")
cooldown_claim = claim_c.get_cooldown_retry_after(ctx)
beg_c = Bot.get_command("beg")
cooldown_beg = beg_c.get_cooldown_retry_after(ctx)
embed = nextcord.Embed(title="COOLDOWNS", colour=nextcord.Colour.from_rgb(255, 0, 0))
if cooldown_claim >= 3600:
cd = round(cooldown_claim)
hours = str(cd // 3600)
minute = int(cd // 60)
minutes = str(minute % 60)
seconds = str(cd % 60)
embed.add_field(name="Claim", value=f"`{hours} hours {minutes} minutes {seconds} seconds`", inline=False)
elif int(cooldown_claim) >= 60 and int(cooldown_claim) < 3600:
cd = round(cooldown_claim)
minutes = str(cd // 60)
seconds = str(cd % 60)
embed.add_field(name="Claim", value=f"`{minutes} minutes {seconds} seconds`", inline=False)
elif int(cooldown_claim) < 60 and int(cooldown_claim) > 0:
embed.add_field(name="Claim", value=f"`{cooldown_claim} seconds`", inline=False)
elif int(cooldown_claim) == 0:
embed.add_field(name="Claim", value="`Ready`", inline=False)
if cooldown_beg >= 3600:
cd = round(cooldown_beg)
hours = str(cd // 3600)
minute = int(cd // 60)
minutes = str(minute % 60)
seconds = str(cd % 60)
embed.add_field(name="Beg", value=f"`{hours} hours {minutes} minutes {seconds} seconds`", inline=False)
elif int(cooldown_beg) >= 60 and int(cooldown_beg) < 3600:
cd = round(cooldown_beg)
minutes = str(cd // 60)
seconds = str(cd % 60)
embed.add_field(name="Beg", value=f"`{minutes} minutes {seconds} seconds`", inline=False)
elif int(cooldown_beg) < 60 and int(cooldown_beg) > 0:
cd = round(cooldown_beg)
embed.add_field(name="Beg", value=f"`{cd} seconds`", inline=False)
elif int(cooldown_beg) == 0.0:
embed.add_field(name="Beg", value="`Ready`", inline=False)
await ctx.send(embed=embed)