Browse Source

Await on runCommand

ghorsington 4 years ago
parent
commit
5af75a78f5
1 changed files with 1 additions and 1 deletions
  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();
             const lowerCaseContent = content.toLowerCase();
             
-            if (plgMgr.runCommand(m, content))
+            if (await plgMgr.runCommand(m, content))
                 return;
 
             if (await plgMgr.trigger("directMention", m, lowerCaseContent))