From c427a52898036b7c7bfcde1b4b1aa6d5cf10b9ef Mon Sep 17 00:00:00 2001 From: DigiDuncan Date: Tue, 5 Dec 2023 16:13:44 -0500 Subject: [PATCH] fix quaketype --- sizebot/cogs/quake.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sizebot/cogs/quake.py b/sizebot/cogs/quake.py index f2e4d12f..ff519034 100644 --- a/sizebot/cogs/quake.py +++ b/sizebot/cogs/quake.py @@ -117,17 +117,17 @@ async def quaketype(self, ctx, s: str): steps: int = len(s) - small_j = step_joules(userdata) + small_j = type_joules(userdata) small_mag = joules_to_mag(small_j) small_type = mag_to_name(small_mag) - big_j = step_joules(userdata) * steps + big_j = type_joules(userdata) * steps big_mag = joules_to_mag(big_j) big_type = mag_to_name(big_mag) return_string = ( f"{userdata.nickname} is {userdata.height:,.3mu} tall, and weighs {userdata.weight:,.3mu}.\n" - f"Typing {steps} characters, {userdata.nickname}, caused {steps} **Magnitude {small_mag} earthquakes.** ({small_type})\n" + f"Typing {steps} characters, {userdata.nickname} caused **{steps} Magnitude {small_mag} earthquakes.** ({small_type})\n" f"That's equivalent to **one Magnitude {big_mag} earthquake**. ({big_type})\n" )