diff options
author | Indrajith K L | 2021-03-11 17:09:09 +0530 |
---|---|---|
committer | Indrajith K L | 2021-03-11 17:09:09 +0530 |
commit | ef0c606a54d6ec0cf61027ff8220761f897706b9 (patch) | |
tree | c65217cf2eb0df0b548cf5c047da79df74d73df0 | |
parent | e3a04633543819b6df03ab1fa7a23288c5401436 (diff) | |
download | lul-bot-ef0c606a54d6ec0cf61027ff8220761f897706b9.tar.gz lul-bot-ef0c606a54d6ec0cf61027ff8220761f897706b9.tar.bz2 lul-bot-ef0c606a54d6ec0cf61027ff8220761f897706b9.zip |
String Changes
-rw-r--r-- | src/main.js | 18 |
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; } } |