aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIndrajith K L2021-03-29 00:15:24 +0530
committerIndrajith K L2021-03-29 00:15:24 +0530
commitb733bbdf86da85afe3f408395ec47825c5fa26c5 (patch)
treee6270b1e1c8fdc191724bff6c69aea167f1f5727 /src
parent5ca85d82db108ff557ab6b7f0ad4f20833d5444d (diff)
downloadradio-bot-b733bbdf86da85afe3f408395ec47825c5fa26c5.tar.gz
radio-bot-b733bbdf86da85afe3f408395ec47825c5fa26c5.tar.bz2
radio-bot-b733bbdf86da85afe3f408395ec47825c5fa26c5.zip
* Execute method implementation warning
Diffstat (limited to 'src')
-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;
}