Fixup config for irc-framework

main
Stef Dunlap 2023-03-11 11:58:02 -05:00
parent 372bc39559
commit 2d3892ddc6
3 changed files with 5 additions and 5 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
config.json
messages.json
node_modules

View File

@ -2,7 +2,7 @@
"server": "irc.libera.chat",
"port": 6697,
"nick": "chatgpt",
"secure": false,
"tsl": false,
"sasl": false,
"username": "chatgpt",
"password": "",

View File

@ -7,7 +7,6 @@ const config = require('./config.json');
const seed_messages = [{ role: 'system', content: config.initialSystemMessage }];
// context is a list of strings that are used to seed the chatgpt api and it's responses
class Context {
currentResponse = '';
constructor(messages = seed_messages) {
@ -55,11 +54,11 @@ const client = new irc.Client();
client.connect({
host: config.server,
nick: config.nick,
username: config.userName,
tls: config.secure,
username: config.username,
tls: config.tsl,
port: config.port,
account: {
account: config.userName,
account: config.username,
password: config.password,
}
});