Skip to content

Commit

Permalink
fix quaketype
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Dec 5, 2023
1 parent 709ffe6 commit c427a52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sizebot/cogs/quake.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit c427a52

Please sign in to comment.