From cb797acacc5e0562e8475e7f429f3c2f58bf4730 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Sun, 30 Apr 2023 21:24:27 +0700 Subject: [PATCH] Forget change to integer --- 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 cdcb158a..821d8a30 100644 --- a/misskaty/plugins/currency.py +++ b/misskaty/plugins/currency.py @@ -25,7 +25,7 @@ async def currency(self: Client, ctx: Message): return await ctx.reply_msg(f"Use format /{ctx.command[0]} [amount] [currency_from] [currency_to] to convert currency.", del_in=6) teks = ctx.text.split() - amount = teks[1] + amount = int(teks[1]) currency_from = teks[2] currency_to = teks[3] if amount.isdigit() or amount.isdecimal():