String Changes
This commit is contained in:
10
src/main.js
10
src/main.js
@@ -27,8 +27,12 @@ client.on('message', (message) => {
|
|||||||
function parseCasualMessage(message) {
|
function parseCasualMessage(message) {
|
||||||
const { content } = message;
|
const { content } = message;
|
||||||
switch (content.trim()) {
|
switch (content.trim()) {
|
||||||
case 'hello': return `Hey ${message.author} 🙋♂️. How Are You?`;
|
case 'hello':
|
||||||
case 'ഹലോ': return `ഹല്ലാ.... ഇതാരാ ${message.author}യോ... സുഖം തന്നെ?`;
|
case 'hi':
|
||||||
|
return `Hey ${message.author} 🙋♂️. How Are You?`;
|
||||||
|
case 'ഹലോ':
|
||||||
|
case 'ഹി':
|
||||||
|
return `ഹല്ലാ.... ഇതാരാ ${message.author}യോ... സുഖം തന്നെ?`;
|
||||||
case 'എന്തൊക്കെ ഉണ്ട് വിശേഷം':
|
case 'എന്തൊക്കെ ഉണ്ട് വിശേഷം':
|
||||||
case 'enthokke und vishesham':
|
case 'enthokke und vishesham':
|
||||||
case 'enthokkeyund vishesham': return `അങ്ങിനെ പോണു...🤷♂️ സുഖങ്ങളൊക്കെ തന്നെ?`;
|
case 'enthokkeyund vishesham': return `അങ്ങിനെ പോണു...🤷♂️ സുഖങ്ങളൊക്കെ തന്നെ?`;
|
||||||
@@ -58,7 +62,7 @@ function parseCMD(message) {
|
|||||||
.trim()
|
.trim()
|
||||||
.substring(CMD_PREFIX.length)
|
.substring(CMD_PREFIX.length)
|
||||||
.split(/\s+/);
|
.split(/\s+/);
|
||||||
switch(CMD_NAME) {
|
switch (CMD_NAME) {
|
||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user