Fixup config for irc-framework
parent
372bc39559
commit
2d3892ddc6
|
@ -1,2 +1,3 @@
|
||||||
config.json
|
config.json
|
||||||
|
messages.json
|
||||||
node_modules
|
node_modules
|
||||||
|
|
|
@ -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": "",
|
||||||
|
|
7
index.js
7
index.js
|
@ -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,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue