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
};
triggers.forEach((mod, i) => {
logger.info(`(main) loading trigger: ${i}`)
mod(self);
});
triggers.forEach(mod => mod(self));
bot.on("message", e => {
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._cmd = new Map();
modules.forEach(mod => {
mod(this);
});
modules.forEach(mod => mod(this));
this.server = {
motd: "",