Skip to content

Commit

Permalink
add reply back to system command
Browse files Browse the repository at this point in the history
  • Loading branch information
alybun committed Apr 16, 2024
1 parent 0c02e1b commit 8a1d1f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nisaba.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ func handleCommands(bot *Bot, command, query, user string) {
case "!system":
newSystemMessage := Message{Role: "system", Content: query}
saveMessageHistory([]Message{newSystemMessage})
bot.IRCConnection.Privmsg(bot.Config.Channel, fmt.Sprintf("%s: Specified system prompt will be attached to the next message.", user))
case "!options":
optionsFile := fmt.Sprintf("options.%s.json", query)
newOptions, err := loadOptions(optionsFile)
Expand Down

0 comments on commit 8a1d1f8

Please sign in to comment.