aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main.js b/src/main.js
index af404b3..a80a172 100644
--- a/src/main.js
+++ b/src/main.js
@@ -13,7 +13,7 @@ client.on('message', (message) => {
} else {
generateConfusionGif(message);
}
-
+
} else {
const replyMessage = parseCasualMessage(message);
if (replyMessage) {
@@ -27,8 +27,12 @@ client.on('message', (message) => {
function parseCasualMessage(message) {
const { content } = message;
switch (content.trim()) {
- case 'hello': return `Hey ${message.author} ๐Ÿ™‹โ€โ™‚๏ธ. How Are You?`;
- case 'เดนเดฒเต‹': return `เดนเดฒเตเดฒเดพ.... เด‡เดคเดพเดฐเดพ ${message.author}เดฏเต‹... เดธเตเด–เด‚ เดคเดจเตเดจเต†?`;
+ case 'hello':
+ case 'hi':
+ return `Hey ${message.author} ๐Ÿ™‹โ€โ™‚๏ธ. How Are You?`;
+ case 'เดนเดฒเต‹':
+ case 'เดนเดฟ':
+ return `เดนเดฒเตเดฒเดพ.... เด‡เดคเดพเดฐเดพ ${message.author}เดฏเต‹... เดธเตเด–เด‚ เดคเดจเตเดจเต†?`;
case 'เดŽเดจเตเดคเตŠเด•เตเด•เต† เด‰เดฃเตเดŸเต เดตเดฟเดถเต‡เดทเด‚':
case 'enthokke und vishesham':
case 'enthokkeyund vishesham': return `เด…เด™เตเด™เดฟเดจเต† เดชเต‹เดฃเต...๐Ÿคทโ€โ™‚๏ธ เดธเตเด–เด™เตเด™เดณเตŠเด•เตเด•เต† เดคเดจเตเดจเต†?`;
@@ -55,10 +59,10 @@ function generateConfusionGif(message) {
function parseCMD(message) {
const [CMD_NAME, ...args] = message.content
- .trim()
- .substring(CMD_PREFIX.length)
- .split(/\s+/);
- switch(CMD_NAME) {
+ .trim()
+ .substring(CMD_PREFIX.length)
+ .split(/\s+/);
+ switch (CMD_NAME) {
default: return null;
}
}