https://stackoverflow.com/questions/22277447/indexof-within-switch
switch (true) { case (msgRes.indexOf("hi") !=-1): botResponse.push("HELLO. "); break; case (msgRes.indexOf("how are you") !=-1): botResponse.push("I AM FINE. "); break; case (msgRes.indexOf("do you like pie") !=-1): botResponse.push("I CAN'T EAT. THANKS, ASSHAT. "); break; default: respond (botResponse); spamCount(id); break; }