Fixup config for irc-framework
parent
372bc39559
commit
2d3892ddc6
|
@ -1,2 +1,3 @@
|
|||
config.json
|
||||
messages.json
|
||||
node_modules
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"server": "irc.libera.chat",
|
||||
"port": 6697,
|
||||
"nick": "chatgpt",
|
||||
"secure": false,
|
||||
"tsl": false,
|
||||
"sasl": false,
|
||||
"username": "chatgpt",
|
||||
"password": "",
|
||||
|
|
7
index.js
7
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,
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue