This commit is contained in:
yasirarism 2023-04-30 21:16:59 +07:00 committed by GitHub
parent 1bb054b2ce
commit d7b2d6ae5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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("<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(amount, ',')}` **{base_code}** = `{format(conversion_result, ',')}` **{target_code}**\n<b>Rate Today</b> = `{format(conversion_rate, ',')}`\n<b>Last Update:</b> {last_update}")
except Exception as err:
await ctx.reply_msg("Failed convert currency, maybe you give wrong currency format or api down.")
else:

View file

@ -317,7 +317,7 @@ async def imdbcari(self: Client, query: CallbackQuery):
timeout=30
)
except ListenerTimeout:
return await msg.edit_caption("😶‍🌫️ Timeout. Task Has Been Cancelled!")
await msg.edit_caption("😶‍🌫️ Timeout. Task Has Been Cancelled!")
except Exception as err:
await query.message.edit_caption(f"Failed when requesting movies title. Maybe got rate limit or down.\n\n<b>ERROR:</b> <code>{err}</code>")