Jump to content
McKay Development

How do i make a BOT respond no matter the capitilization?


Puffin217

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...