diff options
author | Indrajith K L | 2021-10-20 22:27:55 +0530 |
---|---|---|
committer | Indrajith K L | 2021-10-20 22:27:55 +0530 |
commit | 4706f6c1ada033db9d28e815739ab3e096c98091 (patch) | |
tree | 1c0357f12610010fe6850bace398cbb4412617ab /src | |
parent | c878096f25d33e53bb7dddb5c5d6030dd8f677cb (diff) | |
download | lul-bot-4706f6c1ada033db9d28e815739ab3e096c98091.tar.gz lul-bot-4706f6c1ada033db9d28e815739ab3e096c98091.tar.bz2 lul-bot-4706f6c1ada033db9d28e815739ab3e096c98091.zip |
language changes
Diffstat (limited to 'src')
-rw-r--r-- | src/main.js | 4 |
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(); } }) |