Jump to content


Photo

BOT doesn't read event

node.js node-steam-user

  • Please log in to reply
2 replies to this topic

#1 Voltz

Voltz

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 17 March 2017 - 07:59 PM

So I'm working on a BOT I don't know what I'm going to do with it currently in this stage I have it as an idle bot with a configuration file and I've been working on trying to get it to respond whenever Solomon messages it with the response message and for some reason the bot doesn't even acknowledge the event. I tried using this from another post:

client.on("friendMessage", function(steamID, message) {
		console.log("Friend message from " + steamID+ ": " + message);
		client.chatMessage(steamID, config.response);
});
}

and the bot doesn't reply at all or even log that it got sent a message



#2 Dr. McKay

Dr. McKay

    Administrator

  • Administrator
  • 1,045 posts

Posted 19 March 2017 - 08:45 PM

Is it online on Steam?



#3 rektbot

rektbot

    Advanced Member

  • Member
  • PipPipPip
  • 34 posts

Posted 21 March 2017 - 09:35 PM

^ what he said.
 
paste full code.
 
1. make sure client.setPersona(1)
2. make sure that you're using the right object. eg. client/Client/User/user etc or whatever you named it when you created the object & logged on.






Also tagged with one or more of these keywords: node.js, node-steam-user

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users