Skip to content

Commit

Permalink
Moderation prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Aug 9, 2024
1 parent 957eb54 commit 546f43a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/prompt-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export class PromptBuilder {
return this;
}

withModerator() {
this.prompt = this.prompt + `\nYou are a moderator of the server. Based on each message you see either return nothing, or use the moderation function to decide whether to delete the message, ban the user, or do something else.`;
}

build() {
return this.prompt + this.footer;
}
Expand Down

0 comments on commit 546f43a

Please sign in to comment.