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()) {