Fixed point initation.

This commit is contained in:
ThePendulum 2022-10-20 00:07:48 +02:00
parent eee039a90e
commit ec1fc7b553
3 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,9 @@ module.exports = {
username: 'Aisha',
realName: 'Aisha',
},
style: {
color: 'var(--message-56)',
},
operators: ['admin'],
server: 'irc.libera.chat',
port: 6697,

View File

@ -1,7 +1,7 @@
'use strict';
const config = require('config');
const irc = require('irc-upd');
const irc = require('irc');
const logger = require('simple-node-logger').createSimpleLogger();
const { argv } = require('yargs');
// const timers = require('timers/promises');

View File

@ -22,7 +22,7 @@ async function initPoints(identifier) {
logger.info('Creating new points file');
await fs.writeFile(`./points-${identifier}.json`, '{}');
initPoints();
await initPoints(identifier);
}
}
}