Compare commits

..

2 commits

Author SHA1 Message Date
alex a545633493
Merge pull request #1 from unfortunatelyalex/main
Fixed some formatting
2023-08-07 10:31:05 +02:00
alex a6c21aab43 Fixed some formatting 2023-08-07 08:29:36 +02:00

View file

@ -16,9 +16,9 @@ async def get_credentials(interaction):
try: try:
get_response = await accounts.request_user_by_discord_id(interaction.user.id) get_response = await accounts.request_user_by_discord_id(interaction.user.id)
except Exception as exc: except Exception as exc:
await embedder.error(interaction, """Sorry, await embedder.error(interaction, """Sorry,\n" \
there was an issue while checking if you already have an account. there was an issue while checking if you already have an account.
Please report this issue to the staff!""", ephemeral=True) Please report this issue to the staff!""", ephemeral=True)
raise exc raise exc
if get_response.status_code == 200: # user exists if get_response.status_code == 200: # user exists
@ -49,13 +49,13 @@ async def get_credentials(interaction):
except Exception as exc: except Exception as exc:
await embedder.error(interaction, """Sorry, await embedder.error(interaction, """Sorry,
your account could not be created. Please report this issue to the staff!""", ephemeral=True) your account could not be created. Please report this issue to the staff!""", ephemeral=True)
raise exc raise exc
else: else:
await embedder.ok(interaction, f"""Welcome to NovaAI, {interaction.user.mention}! await embedder.ok(interaction, f"""Welcome to NovaAI, {interaction.user.mention}!
Your account was created successfully.""", ephemeral=True) Your account was created successfully.""", ephemeral=True)
api_key = get_response.json()['api_key'] api_key = get_response.json()['api_key']