aboutsummaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
authorIndrajith K L2021-05-26 10:20:40 +0530
committerIndrajith K L2021-05-26 10:20:40 +0530
commit2d17e95543479c6114a009b64f7945c78b3d2b78 (patch)
tree20ae7b90c85532aee411271d379305a86aee29c8 /src/main.js
parent368bfdf04df06b952688daa27102546e103019a0 (diff)
parentc0615f8aebfe52418ad86a90619152d5a8c3b8ba (diff)
downloadlul-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.tar.gz
lul-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.tar.bz2
lul-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.zip
Merge branch 'main' of github.com:cooljith91112/lul-bot
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js
index 97ac2dc..d0bb7d6 100644
--- a/src/main.js
+++ b/src/main.js
@@ -64,7 +64,11 @@ function parseCMD(message) {
if (!client.commands.has(CMD_NAME)) return false;
- client.commands.get(CMD_NAME).execute(client, message, args);
+ if (typeof client.commands.get(CMD_NAME).execute === "function") {
+ client.commands.get(CMD_NAME).execute(client, message, args);
+ } else {
+ console.log(`execute method is not implemented for ${CMD_NAME}.js`);
+ }
return true;
}