From a194481ec87d137c3bd4d00e94aa7a6e13d3ccf9 Mon Sep 17 00:00:00 2001 From: tookender Date: Sun, 1 Sep 2024 23:55:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A2=20Use=20numerize=20instead=20of=20?= =?UTF-8?q?huzmanize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/dq/calculators.py | 6 +++--- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/dq/calculators.py b/extensions/dq/calculators.py index c9bdab9..432f038 100644 --- a/extensions/dq/calculators.py +++ b/extensions/dq/calculators.py @@ -1,4 +1,4 @@ -import humanize +from numerize import numerize from discord import app_commands from discord.ext import commands @@ -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", diff --git a/requirements.txt b/requirements.txt index 4ee5e37..586e841 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file