Puffin217 Posted June 12, 2017 Report Share Posted June 12, 2017 Hello i am currently making my own bot .I have got to the point where everything works except chat functions sort of. The bot responds to people when they type yet i cant get it to respond if lets say this. friends.on("friendMsg", function(user, msg, type){if(type == Steam.EChatEntryType.ChatMsg){if(msg == "ping"){friends.sendMessage(user, "Pong!"); if they say Ping it does not respond yet i wish to make it so it will respond no matter how i write it. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted June 12, 2017 Report Share Posted June 12, 2017 Lowercase the input first: msg.toLowerCase() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.