Fixed point initation.
This commit is contained in:
parent
eee039a90e
commit
ec1fc7b553
|
@ -7,6 +7,9 @@ module.exports = {
|
|||
username: 'Aisha',
|
||||
realName: 'Aisha',
|
||||
},
|
||||
style: {
|
||||
color: 'var(--message-56)',
|
||||
},
|
||||
operators: ['admin'],
|
||||
server: 'irc.libera.chat',
|
||||
port: 6697,
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -22,7 +22,7 @@ async function initPoints(identifier) {
|
|||
logger.info('Creating new points file');
|
||||
|
||||
await fs.writeFile(`./points-${identifier}.json`, '{}');
|
||||
initPoints();
|
||||
await initPoints(identifier);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue