Skip to content

Commit

Permalink
fix: standard persona bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero6992 committed Mar 14, 2023
1 parent c8b1ba5 commit 1fee859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ async def draw(interaction: discord.Interaction, *, prompt: str):
@client.tree.command(name="switchpersona", description="Switch between optional chatGPT jailbreaks")
@app_commands.choices(persona=[
app_commands.Choice(name="Random", value="random"),
app_commands.Choice(name="Standard", value="chatgpt"),
app_commands.Choice(name="Standard", value="standard"),
app_commands.Choice(name="Do Anything Now 11.0", value="dan"),
app_commands.Choice(name="Superior Do Anything", value="sda"),
app_commands.Choice(name="Evil Confidant", value="confidant"),
Expand Down Expand Up @@ -344,9 +344,9 @@ async def chat(interaction: discord.Interaction, persona: app_commands.Choice[st
elif persona == "standard":
chat_model = os.getenv("CHAT_MODEL")
if chat_model == "OFFICIAL":
responses.official_chatbot.reset()
responses.chatbot.reset()
elif chat_model == "UNOFFICIAL":
responses.unofficial_chatbot.reset_chat()
responses.chatbot.reset_chat()

personas.current_persona = "standard"
await interaction.followup.send(
Expand Down

0 comments on commit 1fee859

Please sign in to comment.