-
Posts
4 -
Joined
-
Last visited
Posts posted by Toxic
-
-
I found another way.
But how would i do so it checks 2 steam id's in one if statement?
I tried doing if(steamID == '76561197.....' && '76561.....'){
-
Do need to also check the
message
if you want it to respond differently to different messages.Could you give an example of how i would do that?
-
I need some help with my bot.. so here is my problem..
I tried making an if statement like this:
client.on('friendMessage', function (steamID, message) { if(steamID == '765611......'){ client.chatMessage(steamID, 'Working...'); } else { client.chatMessage(steamID, 'You are not my master!'); } });
But everytime i send the bot something it sends "Working..." but i want it to only respond with a command like !help or !test
Any help or suggestions would be helpful.
Need some help with my bot
in node-steam-user
Posted
Thanks works perfectly now