cuffeo constructor is now async
This commit is contained in:
parent
fe936b8cd6
commit
1f194e8267
|
@ -18,7 +18,7 @@ const timeout = 1000;
|
|||
this.clients = args.clients || [ "irc", "tg" ];
|
||||
this.f = args.f;
|
||||
},
|
||||
bot: new cuffeo(config.clients)
|
||||
bot: await new cuffeo(config.clients)
|
||||
};
|
||||
|
||||
console.time("loading");
|
||||
|
@ -28,7 +28,6 @@ const timeout = 1000;
|
|||
};
|
||||
|
||||
console.timeLog("loading", "directories");
|
||||
|
||||
const blah = (await Promise.all(Object.entries(modules).map(async ([dir, mods]) => ({
|
||||
[dir]: (await Promise.all(mods.map(async mod => {
|
||||
const res = await Promise.race([
|
||||
|
|
Loading…
Reference in New Issue
Block a user