THR
Member-
Posts
5 -
Joined
-
Last visited
Everything posted by THR
-
Thank you anyway sir. I just wanted to ask you about steamcommunity postUserComment here is the code : client.on('friendRelationship', (steamID, relationship) => {if (relationship === SteamUser.EFriendRelationship.RequestRecipient) { client.addFriend(steamID); client.inviteToGroup(steamID, config.groupid, ); community.postUserComment(steamID, "Thanks for adding me ! I wish you good day."); it is doing nothing, can you tell me how to callback ??Please help me it's not working
-
OK sir it worked and this is the code.Please tell me if there is any mistake and thank you. client.getPersonas([steamID], function(err, personas) { if (err) {console.log('error.')} else { persona = personas[steamID.getSteamID64()]; name = persona ? persona.player_name : ("[" + steamID.getSteamID64() + "]"); client.chatMessage(steamID,'The name is ' + name); }
-
Can you tell me how to callback the err,please ?
-
[email protected] i get the information from the package.json. Now i change it to 4.5 but the same it sending the SteamID not the the name.
-
Hello, I just started building my steam level up bot and couldn't code it when someone adding him to tell 'Hello, "Persona Name" Thank you for adding me'. this is the code i put it from another question but its sending 'Hello, [steamID] Thank you for adding me'. client.getPersonas([steamID], function(personas) { var persona = personas[steamID.getSteamID64()]; var name = persona ? persona.player_name : ("[" + steamID.getSteamID64() + "]"); }); client.chatMessage(steamID, 'Hi ' + name + ' Thank you for adding me!'); } });