Putting more than two if statements causes the behavior I found.
client.on('friendMessage', function(steamid, message){
if (message == '!hello'){
client.chatMessage(steamid, 'Hiya');
}
if (message == '!why'){
client.chatMessage(steamid, 'Because you told me to');
}
if (message == '!lol'){
client.chatMessage(steamid, 'You are funny');
}
else {
client.chatMessage(steamid, 'Adios');
}
});
Only command that works properly is !lol, all the others work but they also call the else statement.