Skip to content

Commit

Permalink
🔢 Use numerize instead of huzmanize
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Sep 1, 2024
1 parent cdeeea3 commit a194481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions extensions/dq/calculators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import humanize
from numerize import numerize
from discord import app_commands
from discord.ext import commands

Expand All @@ -15,8 +15,8 @@ async def calc_potential(self, ctx, current_power: int, current_upgrades: int, t
upgrade_cost = calculate_upgrade_cost(current_upgrades, total_upgrades)
potential = calculate_potential(current_power, current_upgrades, total_upgrades)

humanized_cost = f"({humanize.intword(upgrade_cost)})"
humanized_potential = f"({humanize.intword(potential)})"
humanized_cost = f"({numerize.numerize.intword(upgrade_cost)})"
humanized_potential = f"({numerize.numerize.intword(potential)})"

embed = Embed(
title="Potential Calculator",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ discord.py
python-dateutil
pynacl
humanfriendly
humanize
numerize
git+https://github.com/Gorialis/jishaku
git+https://github.com/Rapptz/discord-ext-menus

0 comments on commit a194481

Please sign in to comment.