Pārlūkot izejas kodu

Await on runCommand

ghorsington 4 gadi atpakaļ
vecāks
revīzija
5af75a78f5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      bot/src/main.ts

+ 1 - 1
bot/src/main.ts

@@ -50,7 +50,7 @@ client.bot.on("message", async m => {
             content = content.substring(`@${client.botUser.username}`.length).trim();
             content = content.substring(`@${client.botUser.username}`.length).trim();
             const lowerCaseContent = content.toLowerCase();
             const lowerCaseContent = content.toLowerCase();
             
             
-            if (plgMgr.runCommand(m, content))
+            if (await plgMgr.runCommand(m, content))
                 return;
                 return;
 
 
             if (await plgMgr.trigger("directMention", m, lowerCaseContent))
             if (await plgMgr.trigger("directMention", m, lowerCaseContent))