Steam bot(need help)

Steam bot(need help)
0.0 0

#1

As you can see from the image when someone sends me hey,hello,greetings etc it will respond with a message.The problem is that is not one part so i need to copy and paste and change the message that i recieve.
How can i make it so its

client.on(“friendMessage”, function(steamId, message) {
if (message == “Hey” or “Howdy” or …) {
client.chatMessage(steamId, “Hello, type !help to continue.”);
}
});


#2

maybe

if ( message == "Hey" || message == "Howdy" || message == "other greetings..." ) {
  ...
}

?


#3

Yep, it worked.Thank you so much


#4

Also if we can make it so that when someone sends me a message my bot sends them back a message ,could we make it so when someone sends me a message my bot sends them a trade offer?

I found thishttps://github.com/Jessecar96/SteamBot/blob/master/SteamBot/TradeOfferUserHandler.cs#L64 but it is too complicated.for me.


#5

yes that part is not a basic JS, it’s specific to the steam API, which i am not familiar with.


#6

Ok thank you for your help!