add options needed for SASL

main
Stef Dunlap 2023-03-11 01:22:09 -05:00
parent c11118667e
commit 13c4356cfc
2 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,10 @@
"server": "irc.libera.chat", "server": "irc.libera.chat",
"port": 6697, "port": 6697,
"nick": "chatgpt", "nick": "chatgpt",
"secure": false,
"sasl": false,
"username": "chatgpt",
"password": "",
"channels": ["#chatgpt"], "channels": ["#chatgpt"],
"openaiApiKey": "[redacted]", "openaiApiKey": "[redacted]",
"initialSystemMessage": "You are a helpful assistant.", "initialSystemMessage": "You are a helpful assistant.",

View File

@ -61,7 +61,14 @@ if (fs.existsSync('./messages.json')) {
} }
const client = new irc.Client(config.server, config.nick, { const client = new irc.Client(config.server, config.nick, {
showErrors: false,
debug: true,
port: config.port,
secure: config.secure,
channels: config.channels, channels: config.channels,
sasl: config.sasl,
userName: config.userName,
password: config.password,
}); });
// listen for messages that start with !chat and call the chatgpt api with a callback that prints the response line by line // listen for messages that start with !chat and call the chatgpt api with a callback that prints the response line by line