aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2021-10-20 22:27:55 +0530
committerIndrajith K L2021-10-20 22:27:55 +0530
commit4706f6c1ada033db9d28e815739ab3e096c98091 (patch)
tree1c0357f12610010fe6850bace398cbb4412617ab
parentc878096f25d33e53bb7dddb5c5d6030dd8f677cb (diff)
downloadlul-bot-4706f6c1ada033db9d28e815739ab3e096c98091.tar.gz
lul-bot-4706f6c1ada033db9d28e815739ab3e096c98091.tar.bz2
lul-bot-4706f6c1ada033db9d28e815739ab3e096c98091.zip
language changes
-rw-r--r--src/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.js b/src/main.js
index 43a5881..ab33c28 100644
--- a/src/main.js
+++ b/src/main.js
@@ -55,8 +55,8 @@ function parseCasualMessage(message) {
if (!casualMessages.hasOwnProperty(parsedMessage)) {
let currentKey;
parsedMessage.split(" ").forEach((lang) => {
- if(casualMessages.hasOwnProperty(lang)) {
- currentKey = lang;
+ if(casualMessages.hasOwnProperty(lang.toString().trim())) {
+ currentKey = lang.toString().trim();
}
})