Puffin217 Posted June 12, 2017 Report 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
Dr. McKay Posted June 12, 2017 Report Posted June 12, 2017 Lowercase the input first: msg.toLowerCase() Quote
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.