Skip to content

Commit

Permalink
chore: error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero6992 committed Mar 8, 2024
1 parent 9a338de commit 2af3130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def draw(interaction: discord.Interaction, *, prompt: str, model: app_comm

except Exception as e:
await interaction.followup.send(
f'> **Something Went Wrong: Please try again later.\n\nError Message:{e}**')
f'> Something Went Wrong, try again later.\n\nError Message:{e}')
logger.info(f"\x1b[31m{username}\x1b[0m :{e}")

@discordClient.tree.command(name="switchpersona", description="Switch between optional chatGPT jailbreaks")
Expand Down Expand Up @@ -197,7 +197,7 @@ async def switchpersona(interaction: discord.Interaction, persona: app_commands.
f"> **INFO: Switched to `{persona}` persona**")
except Exception as e:
await interaction.followup.send(
"> **ERROR: Something went wrong, please try again later! **")
"> ERROR: Something went wrong, try again later! ")
logger.exception(f"Error while switching persona: {e}")
else:
await interaction.followup.send(
Expand Down

0 comments on commit 2af3130

Please sign in to comment.