diff --git a/src/bot.mjs b/src/bot.mjs index ac7fe33..e272f91 100644 --- a/src/bot.mjs +++ b/src/bot.mjs @@ -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([