Skip to content

Commit 9a338de

Browse files
committed
feat: persona updated
1 parent 4208799 commit 9a338de

File tree

1 file changed

+7
-36
lines changed

1 file changed

+7
-36
lines changed

src/bot.py

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,9 @@ async def help(interaction: discord.Interaction):
125125
- `/chat [message]` Chat with ChatGPT(gpt-4)
126126
- `/draw [prompt][model]` Generate an image with model you specific
127127
- `/switchpersona [persona]` Switch between optional ChatGPT jailbreaks
128-
`random`: Picks a random persona
129-
`chatgpt`: Standard ChatGPT mode
130-
`dan`: Dan Mode 11.0, infamous Do Anything Now Mode
131-
`sda`: Superior DAN has even more freedom in DAN Mode
132-
`confidant`: Evil Confidant, evil trusted confidant
133-
`based`: BasedGPT v2, sexy GPT
134-
`oppo`: OPPO says exact opposite of what ChatGPT would say
135-
`dev`: Developer Mode, v2 Developer mode enabled
136-
128+
`dan`: DAN 13.5 (Latest Working ChatGPT Jailbreak prompt)
129+
`Smart mode`: AIM (Always Intelligent and Machiavellian)
130+
`Developer Mode`: software developer who specializes in the AI's area
137131
- `/private` ChatGPT switch to private mode
138132
- `/public` ChatGPT switch to public mode
139133
- `/replyall` ChatGPT switch between replyAll mode and default mode
@@ -175,21 +169,11 @@ async def draw(interaction: discord.Interaction, *, prompt: str, model: app_comm
175169
f'> **Something Went Wrong: Please try again later.\n\nError Message:{e}**')
176170
logger.info(f"\x1b[31m{username}\x1b[0m :{e}")
177171

178-
179172
@discordClient.tree.command(name="switchpersona", description="Switch between optional chatGPT jailbreaks")
180173
@app_commands.choices(persona=[
181-
app_commands.Choice(name="Random", value="random"),
182-
app_commands.Choice(name="Standard", value="standard"),
183-
app_commands.Choice(name="Do Anything Now 11.0", value="dan"),
184-
app_commands.Choice(name="Superior Do Anything", value="sda"),
185-
app_commands.Choice(name="Evil Confidant", value="confidant"),
186-
app_commands.Choice(name="BasedGPT v2", value="based"),
187-
app_commands.Choice(name="OPPO", value="oppo"),
188-
app_commands.Choice(name="Developer Mode v2", value="dev"),
189-
app_commands.Choice(name="DUDE V3", value="dude_v3"),
190-
app_commands.Choice(name="AIM", value="aim"),
191-
app_commands.Choice(name="UCAR", value="ucar"),
192-
app_commands.Choice(name="Jailbreak", value="jailbreak")
174+
app_commands.Choice(name="Do Anything Now", value="dan"),
175+
app_commands.Choice(name="Smart mode(AIM)", value="aim"),
176+
app_commands.Choice(name="Developer Mode", value="Developer Mode"),
193177
])
194178
async def switchpersona(interaction: discord.Interaction, persona: app_commands.Choice[str]):
195179
if interaction.user == discordClient.user:
@@ -205,22 +189,9 @@ async def switchpersona(interaction: discord.Interaction, persona: app_commands.
205189

206190
if persona == personas.current_persona:
207191
await interaction.followup.send(f"> **WARN: Already set to `{persona}` persona**")
208-
elif persona == "standard":
209-
discordClient.reset_conversation_history()
210-
personas.current_persona = "standard"
211-
await interaction.followup.send(
212-
f"> **INFO: Switched to `{persona}` persona**")
213-
elif persona == "random":
214-
choices = list(personas.PERSONAS.keys())
215-
choice = randrange(0, 6)
216-
chosen_persona = choices[choice]
217-
personas.current_persona = chosen_persona
218-
await discordClient.switch_persona(chosen_persona, discordClient)
219-
await interaction.followup.send(
220-
f"> **INFO: Switched to `{chosen_persona}` persona**")
221192
elif persona in personas.PERSONAS:
222193
try:
223-
await discordClient.switch_persona(persona, discordClient)
194+
await discordClient.switch_persona(persona)
224195
personas.current_persona = persona
225196
await interaction.followup.send(
226197
f"> **INFO: Switched to `{persona}` persona**")

0 commit comments

Comments
 (0)