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