aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIndrajith K L2021-04-02 19:15:30 +0530
committerGitHub2021-04-02 19:15:30 +0530
commitc0615f8aebfe52418ad86a90619152d5a8c3b8ba (patch)
treee6270b1e1c8fdc191724bff6c69aea167f1f5727 /src
parent4868721d30319a8213279e1fb72e482487681e68 (diff)
parentb733bbdf86da85afe3f408395ec47825c5fa26c5 (diff)
downloadlul-bot-c0615f8aebfe52418ad86a90619152d5a8c3b8ba.tar.gz
lul-bot-c0615f8aebfe52418ad86a90619152d5a8c3b8ba.tar.bz2
lul-bot-c0615f8aebfe52418ad86a90619152d5a8c3b8ba.zip
Merge pull request #1 from cooljith91112/dev
Command Enhancements & Documentation
Diffstat (limited to 'src')
-rw-r--r--src/language/language.json7
-rw-r--r--src/main.js6
2 files changed, 11 insertions, 2 deletions
diff --git a/src/language/language.json b/src/language/language.json
index 5912b78..c788513 100644
--- a/src/language/language.json
+++ b/src/language/language.json
@@ -11,5 +11,10 @@
"nee araa": "താൻ ആരാണെന്ന് തനിക്ക് അറിയാന്മേലെങ്കിൽ താൻ എന്നോട് ചോയ്ക്ക് താൻ ആരാണെന്ന്??? തനിക്ക് ഞാൻ പറഞ്ഞു തരാം താൻ ആരാണെന്ന്... 🤪🤪",
"kya banana hei": "Thumarah banana kaha hei...🤣🤣",
"ക്യാ ബനാന ഹേയ്": "തുമരഹ് ബനാന കഹാ ഹേയ്...🤣🤣",
- "good night": "Good Night 🌉. See you tomorrow. 👋👋"
+ "good night": "Good Night 🌉. See you tomorrow. 👋👋",
+ "ola": "ഓല അല്ല തേങ്ങാ",
+ "അങ്ങിനെ പറയാതെ": "പിന്നെ എങ്ങിനെ പറയണം!!",
+ "kool": "എത്രെ ഡിഗ്രീ ഉണ്ട്? 🤣🤣",
+ "cool": "എത്രെ ഡിഗ്രീ ഉണ്ട്? 🤣🤣",
+ "adipoli": "മ് മ്"
} \ No newline at end of file
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;
}