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 config.json
messages.json
node_modules node_modules

View File

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

View File

@ -7,7 +7,6 @@ const config = require('./config.json');
const seed_messages = [{ role: 'system', content: config.initialSystemMessage }]; 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 { class Context {
currentResponse = ''; currentResponse = '';
constructor(messages = seed_messages) { constructor(messages = seed_messages) {
@ -55,11 +54,11 @@ const client = new irc.Client();
client.connect({ client.connect({
host: config.server, host: config.server,
nick: config.nick, nick: config.nick,
username: config.userName, username: config.username,
tls: config.secure, tls: config.tsl,
port: config.port, port: config.port,
account: { account: {
account: config.userName, account: config.username,
password: config.password, password: config.password,
} }
}); });