//contains is used for checking if a specific term is anywhere in a string. Useful when you don't have a command that //requires parameters, such as !help function contains(string, terms){ for(var i=0; i]*>?/gi, ''); } //example: if(stripHTML(data.message).split(" ")[0] == "!tip"){//if the first 'word' of the command without the html is '!tip' //do stuff here } }