From ef0c606a54d6ec0cf61027ff8220761f897706b9 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Thu, 11 Mar 2021 17:09:09 +0530 Subject: String Changes --- src/main.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3