diff options
author | Indrajith K L | 2021-05-26 10:20:40 +0530 |
---|---|---|
committer | Indrajith K L | 2021-05-26 10:20:40 +0530 |
commit | 2d17e95543479c6114a009b64f7945c78b3d2b78 (patch) | |
tree | 20ae7b90c85532aee411271d379305a86aee29c8 /src/main.js | |
parent | 368bfdf04df06b952688daa27102546e103019a0 (diff) | |
parent | c0615f8aebfe52418ad86a90619152d5a8c3b8ba (diff) | |
download | radio-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.tar.gz radio-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.tar.bz2 radio-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.zip |
Merge branch 'main' of github.com:cooljith91112/lul-bot
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 6 |
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; } |