diff --git a/.gitignore b/.gitignore index 95b863a..be7a99a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ config.json +messages.json node_modules diff --git a/config.example.json b/config.example.json index e0c09b4..8884612 100644 --- a/config.example.json +++ b/config.example.json @@ -2,7 +2,7 @@ "server": "irc.libera.chat", "port": 6697, "nick": "chatgpt", - "secure": false, + "tsl": false, "sasl": false, "username": "chatgpt", "password": "", diff --git a/index.js b/index.js index 0398d2d..b73ff4e 100644 --- a/index.js +++ b/index.js @@ -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, } });