typo & es6

This commit is contained in:
Flummi 2017-11-20 15:12:55 +01:00
parent 97d1ed24cc
commit e059d189a4

View File

@ -20,10 +20,10 @@ class irc {
this.username = this.options.username || "test";
this.realname = this.options.realname || "test";
this.channels = this.options.channels || [];
this._recachetime = 60 * 5; // 10 minutes
this._recachetime = 60 * 5; // 5 minutes
this._cmd = new Map();
const files = fs.readdirSync(__dirname + '/irc/');
const files = fs.readdirSync(`${__dirname}/irc/`);
for(let file in files) {
if(files[file].substr(-3, 3) === ".js") {
logger.info(`loading cmd: ${files[file]}`);