mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 20:34:52 +00:00
Change to float
This commit is contained in:
parent
f8723b7332
commit
aa71eece8d
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ async def currency(self: Client, ctx: Message):
|
||||||
last_update = data["time_last_update_utc"]
|
last_update = data["time_last_update_utc"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return await ctx.reply_msg("<code>Invalid response from api !</i>")
|
return await ctx.reply_msg("<code>Invalid response from api !</i>")
|
||||||
await ctx.reply_msg(f"**CURRENCY EXCHANGE RATE RESULT:**\n\n`{format(amount, ',')}` **{base_code}** = `{format(conversion_result, ',')}` **{target_code}**\n<b>Rate Today</b> = `{format(conversion_rate, ',')}`\n<b>Last Update:</b> {last_update}")
|
await ctx.reply_msg(f"**CURRENCY EXCHANGE RATE RESULT:**\n\n`{format(float(amount), ',')}` **{base_code}** = `{format(float(conversion_result), ',')}` **{target_code}**\n<b>Rate Today</b> = `{format(float(conversion_rate), ',')}`\n<b>Last Update:</b> {last_update}")
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
await ctx.reply_msg(f"Failed convert currency, maybe you give wrong currency format or api down.\n\n<b>ERROR</b>: {err}")
|
await ctx.reply_msg(f"Failed convert currency, maybe you give wrong currency format or api down.\n\n<b>ERROR</b>: {err}")
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue