shorter <3

This commit is contained in:
Flummi 2017-12-04 14:59:42 +01:00
parent 681c971e75
commit 25e27f8fd2
2 changed files with 2 additions and 7 deletions

View File

@ -12,10 +12,7 @@ read().then(() => {
trigger: trigger trigger: trigger
}; };
triggers.forEach((mod, i) => { triggers.forEach(mod => mod(self));
logger.info(`(main) loading trigger: ${i}`)
mod(self);
});
bot.on("message", e => { bot.on("message", e => {
for (var [name, trigger] of self._trigger.entries()) { for (var [name, trigger] of self._trigger.entries()) {

View File

@ -37,9 +37,7 @@ export class irc extends EventEmitter {
this._recachetime = 60 * 30; // 30 minutes this._recachetime = 60 * 30; // 30 minutes
this._cmd = new Map(); this._cmd = new Map();
modules.forEach(mod => { modules.forEach(mod => mod(this));
mod(this);
});
this.server = { this.server = {
motd: "", motd: "",