shorter <3
This commit is contained in:
parent
681c971e75
commit
25e27f8fd2
@ -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()) {
|
||||
|
@ -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: "",
|
||||
|
Loading…
Reference in New Issue
Block a user