aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2021-03-11 17:09:09 +0530
committerIndrajith K L2021-03-11 17:09:09 +0530
commitef0c606a54d6ec0cf61027ff8220761f897706b9 (patch)
treec65217cf2eb0df0b548cf5c047da79df74d73df0
parente3a04633543819b6df03ab1fa7a23288c5401436 (diff)
downloadradio-bot-ef0c606a54d6ec0cf61027ff8220761f897706b9.tar.gz
radio-bot-ef0c606a54d6ec0cf61027ff8220761f897706b9.tar.bz2
radio-bot-ef0c606a54d6ec0cf61027ff8220761f897706b9.zip
String Changes
-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;
}
}