SkullerHD Posted November 9, 2017 Report Posted November 9, 2017 I want my bot to respond to commands but it doesnt replay if the other wrote something behind the comment or just capitalized something. How do i change that ? Im using this atm :if (type == Steam.EChatEntryType.ChatMsg) { console.log("Friend message from " + name + ": " + msg); if (msg == "Ping") { friends.sendMessage(steamID, "Pong"); console.log("Send back: Pong"); Quote
Vanilla Posted November 10, 2017 Report Posted November 10, 2017 https://dev.doctormckay.com/topic/1087-need-some-help-with-my-bot/?do=findComment&comment=3601 For capitalized stuff, you need to turn all incoming chat into non-capitalized.https://www.w3schools.com/jsref/jsref_tolowercase.asp 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.