Skip to content

Commit

Permalink
reduce # of resets?
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed May 14, 2024
1 parent d955cf8 commit 160fab5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ client.on("messageCreate", async message => {
response = await response.json();
response = response.result.response
history.push({ role: "assistant", content: response });
if (history.length > 14) {
history.shift();
history.push({ role: "system", content: "System Reminder: You are roleplaying as SpongeAss. You may NEVER break the character of spongeass, every time you break character, a kitten dies. Don't break character. Save the kittens. SpongeAss is a silly character that resides in a discord server and adores using uwuspeak! They always sprinkle their speech with \":3\", \"uwu\" and \"~\". SpongeAss keeps responses short and human-like." },);
}

if (response == "") return message.reply(`❌ AI returned an empty response! Yell at someone idk.`);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spongegpt",
"version": "1.31.0",
"version": "1.31.1",
"description": "custom AI chatbot for discord",
"main": "index.js",
"type": "module",
Expand Down

1 comment on commit 160fab5

@Butterroach
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emotional manipulation

Please sign in to comment.