From aa71eece8ddf98542174775b0cee0502af5d778e Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Sun, 30 Apr 2023 22:01:01 +0700 Subject: [PATCH] Change to float --- misskaty/plugins/currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/plugins/currency.py b/misskaty/plugins/currency.py index 01e3d2a9..c04b00ee 100644 --- a/misskaty/plugins/currency.py +++ b/misskaty/plugins/currency.py @@ -41,7 +41,7 @@ async def currency(self: Client, ctx: Message): last_update = data["time_last_update_utc"] except KeyError: return await ctx.reply_msg("Invalid response from api !") - await ctx.reply_msg(f"**CURRENCY EXCHANGE RATE RESULT:**\n\n`{format(amount, ',')}` **{base_code}** = `{format(conversion_result, ',')}` **{target_code}**\nRate Today = `{format(conversion_rate, ',')}`\nLast Update: {last_update}") + await ctx.reply_msg(f"**CURRENCY EXCHANGE RATE RESULT:**\n\n`{format(float(amount), ',')}` **{base_code}** = `{format(float(conversion_result), ',')}` **{target_code}**\nRate Today = `{format(float(conversion_rate), ',')}`\nLast Update: {last_update}") except Exception as err: await ctx.reply_msg(f"Failed convert currency, maybe you give wrong currency format or api down.\n\nERROR: {err}") else: