Round coolness factor

This commit is contained in:
Marco Loewe 2023-11-13 11:49:43 +01:00
parent 5fc728861f
commit 87e19f1f28

4
bot.py
View File

@ -43,8 +43,8 @@ async def say(ctx, message):
@bot.command()
async def cool(ctx):
cool_factor = random.uniform(0, 100)
await ctx.send(f'{ctx.author} is {cool_factor} cool!')
cool_factor = round(random.uniform(0, 100), 2)
await ctx.send(f'{ctx.author} is {cool_factor}% cool!')
@bot.command()
async def update(ctx):