Skip to content

Commit

Permalink
💬 Add config of system message
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed May 23, 2024
1 parent e661dea commit d882fad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/events/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = {
const replies = snapshot.val().replies ?? []
const alternatives = snapshot.val().alternatives ?? []
const scripts = snapshot.val().scripts ?? []
const system = snapshot.val().system ?? ''

client.configs.constants.prompts = [
...client.configs.constants.prompts,
Expand All @@ -69,6 +70,7 @@ module.exports = {
...client.configs.constants.scripts,
...scripts,
]
client.configs.constants.system = system
} else {
set(chatRef, dataStructures(client, 'chat'))
}
Expand Down

0 comments on commit d882fad

Please sign in to comment.