Jelajahi Sumber

Await on runCommand

ghorsington 4 tahun lalu
induk
melakukan
5af75a78f5
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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))