From 5ca85d82db108ff557ab6b7f0ad4f20833d5444d Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sun, 28 Mar 2021 02:12:29 +0530 Subject: * Language Changes * Adds Logo svg --- assets/logo.svg | 152 +++++++++++++++++++++++++++++++++++++++++++++ src/language/language.json | 7 ++- 2 files changed, 158 insertions(+), 1 deletion(-) create mode 100644 assets/logo.svg diff --git a/assets/logo.svg b/assets/logo.svg new file mode 100644 index 0000000..1180737 --- /dev/null +++ b/assets/logo.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + LULBOT + + 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 -- cgit v1.2.3 From b733bbdf86da85afe3f408395ec47825c5fa26c5 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 29 Mar 2021 00:15:24 +0530 Subject: * Execute method implementation warning --- README.md | 2 +- src/main.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 78538da..04db35b 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ## Documentation - ```main.js``` is the entry file -- ```commands.config.json``` is the main config file which holds the ```command``` & ```command``` file path. +- ```commands.config.json``` is the main config file which holds the ```command``` & ```command file path``` . - ```src/commands``` folder contains all the commands that is configured in ```commands.config.json```. A mandatory method ```execute``` should be implemented, that will be the default execution method while triggerring a command ### Prerequisites 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; } -- cgit v1.2.3