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 | |
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')
-rw-r--r-- | src/language/language.json | 7 | ||||
-rw-r--r-- | src/main.js | 6 |
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; } |