From 87e19f1f28a277f0093d86810f939b57aa6af755 Mon Sep 17 00:00:00 2001 From: Marco Loewe Date: Mon, 13 Nov 2023 11:49:43 +0100 Subject: [PATCH] Round coolness factor --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 7cfa6c8..8d4b6fa 100644 --- a/bot.py +++ b/bot.py @@ -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):