mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-25 20:43:56 +01:00
Small improvements
This commit is contained in:
parent
c631d0f0d3
commit
70f395c0a7
|
@ -31,7 +31,7 @@ Please report this issue to the staff!""", ephemeral=True)
|
||||||
|
|
||||||
if user_response.status_code == 404:
|
if user_response.status_code == 404:
|
||||||
await embedder.error(interaction, """You don't have an account yet!""", ephemeral=True)
|
await embedder.error(interaction, """You don't have an account yet!""", ephemeral=True)
|
||||||
raise ValueError('Account not found.')
|
return
|
||||||
|
|
||||||
return user_response.json()
|
return user_response.json()
|
||||||
|
|
||||||
|
@ -52,7 +52,8 @@ Learn more about how to use our API at **https://nova-oss.com**.
|
||||||
|
|
||||||
async def get_credits(interaction):
|
async def get_credits(interaction):
|
||||||
account = await get_account(interaction)
|
account = await get_account(interaction)
|
||||||
|
amount_credits = account["credits"]
|
||||||
|
|
||||||
await embedder.info(interaction, f"""### Your credits
|
await embedder.info(interaction, f"""### Your credits
|
||||||
**Amount:** `{account["credits"]}`
|
Amount: **{amount_credits if amount_credits < 1000000 else '∞'}**
|
||||||
""", ephemeral=True)
|
""", ephemeral=True)
|
||||||
|
|
Loading…
Reference in a new issue