From 1f194e826728d11c86dcc269625196d8b2534cf2 Mon Sep 17 00:00:00 2001 From: Flummi Date: Tue, 20 Aug 2019 18:02:13 +0000 Subject: [PATCH] cuffeo constructor is now async --- src/bot.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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([