App.program_prompt = (channel, arg) => {
  let messages = []

  let sysprompt = `You are a bot on irc and will be given an instruction to reconfigure yourself.`
  messages.unshift({role: `system`, content: sysprompt})

  let mx = App.config.max_rules
  let u_content = `Generate a single personality rule, under ${mx} characters, suitable for an IRC bot. Base the rule on the following instruction: "${arg}".  The rule should refer to the AI in the second person (e.g., "You are a...", "You enjoy..."). Do not include any introductory or concluding phrases. Only output the personality rule itself.`
  messages.push({role: `user`, content: u_content})

  App.ask_ai(messages, channel, (response) => {
    if (response) {
      let value = App.limit(response, mx)
      App.update_config(`rules`, value)
      App.cmd_show(channel, `rules`)
    }
  })
}
Edit Report
Pub: 30 Mar 2025 22:29 UTC
Views: 64