typo & es6
This commit is contained in:
		@@ -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]}`);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user