aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2021-05-26 10:20:40 +0530
committerIndrajith K L2021-05-26 10:20:40 +0530
commit2d17e95543479c6114a009b64f7945c78b3d2b78 (patch)
tree20ae7b90c85532aee411271d379305a86aee29c8
parent368bfdf04df06b952688daa27102546e103019a0 (diff)
parentc0615f8aebfe52418ad86a90619152d5a8c3b8ba (diff)
downloadlul-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.tar.gz
lul-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.tar.bz2
lul-bot-2d17e95543479c6114a009b64f7945c78b3d2b78.zip
Merge branch 'main' of github.com:cooljith91112/lul-bot
-rw-r--r--README.md2
-rw-r--r--assets/logo.svg152
-rw-r--r--src/language/language.json7
-rw-r--r--src/main.js6
4 files changed, 164 insertions, 3 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/assets/logo.svg b/assets/logo.svg
new file mode 100644
index 0000000..1180737
--- /dev/null
+++ b/assets/logo.svg
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="210mm"
+ height="297mm"
+ viewBox="0 0 210 297"
+ version="1.1"
+ id="svg8"
+ inkscape:version="1.0.2-2 (e86c870879, 2021-01-15)"
+ sodipodi:docname="logo.svg">
+ <defs
+ id="defs2">
+ <filter
+ inkscape:label="Duotone Turbulent"
+ inkscape:menu="Overlays"
+ inkscape:menu-tooltip="Basic noise fill texture; adjust color in Flood"
+ style="color-interpolation-filters:sRGB;"
+ id="filter1207">
+ <feColorMatrix
+ values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 "
+ id="feColorMatrix1181" />
+ <feColorMatrix
+ type="saturate"
+ values="0"
+ result="result1"
+ id="feColorMatrix1183" />
+ <feFlood
+ flood-color="rgb(9,111,151)"
+ result="result2"
+ id="feFlood1185" />
+ <feColorMatrix
+ type="hueRotate"
+ values="0"
+ result="result3"
+ id="feColorMatrix1187" />
+ <feBlend
+ in2="result1"
+ mode="screen"
+ result="result2"
+ id="feBlend1189" />
+ <feBlend
+ in2="result2"
+ result="result4"
+ mode="multiply"
+ id="feBlend1191" />
+ <feTurbulence
+ numOctaves="5"
+ baseFrequency="0.035"
+ type="fractalNoise"
+ result="result7"
+ id="feTurbulence1193" />
+ <feColorMatrix
+ result="result0"
+ values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 3 -1 "
+ id="feColorMatrix1195" />
+ <feFlood
+ flood-opacity="1"
+ flood-color="rgb(200,57,93)"
+ result="result1"
+ id="feFlood1197" />
+ <feBlend
+ in2="result4"
+ mode="lighten"
+ in="result1"
+ result="result5"
+ id="feBlend1199" />
+ <feComposite
+ in2="result0"
+ operator="out"
+ result="result6"
+ id="feComposite1201" />
+ <feComposite
+ in2="result4"
+ operator="atop"
+ result="result8"
+ id="feComposite1203" />
+ <feComposite
+ in2="SourceGraphic"
+ operator="in"
+ id="feComposite1205" />
+ </filter>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.7"
+ inkscape:cx="380.97397"
+ inkscape:cy="547.07158"
+ inkscape:document-units="mm"
+ inkscape:current-layer="layer1"
+ inkscape:document-rotation="0"
+ showgrid="false"
+ inkscape:window-width="1267"
+ inkscape:window-height="729"
+ inkscape:window-x="83"
+ inkscape:window-y="7"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata5">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <rect
+ style="opacity:1;fill:#8800aa;fill-opacity:1;stroke:#8800aa;stroke-width:0.264583;stroke-opacity:1;filter:url(#filter1207)"
+ id="rect10"
+ width="135.46666"
+ height="135.46666"
+ x="51.404758"
+ y="55.184521"
+ inkscape:export-xdpi="96"
+ inkscape:export-ydpi="96" />
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:50.8px;line-height:1.25;font-family:sans-serif;fill:#f6d5ff;fill-opacity:1;stroke:#f6d5ff;stroke-width:0.264583"
+ x="117.75283"
+ y="107.34524"
+ id="text14"
+ inkscape:export-xdpi="96"
+ inkscape:export-ydpi="96"><tspan
+ sodipodi:role="line"
+ id="tspan12"
+ x="117.75283"
+ y="107.34524"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:50.8px;font-family:'Fira Code';-inkscape-font-specification:'Fira Code';text-align:center;text-anchor:middle;fill:#f6d5ff;stroke:#f6d5ff;stroke-width:0.264583">LUL</tspan><tspan
+ sodipodi:role="line"
+ x="117.75283"
+ y="171.25995"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:50.8px;font-family:'Fira Code';-inkscape-font-specification:'Fira Code';text-align:center;text-anchor:middle;fill:#f6d5ff;stroke:#f6d5ff;stroke-width:0.264583"
+ id="tspan16">BOT</tspan></text>
+ </g>
+</svg>
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;
}