Jump to content
McKay Development

DanH3r3

Member
  • Posts

    8
  • Joined

  • Last visited

DanH3r3's Achievements

  1. The profile comments are on public, account is premium and I get the error. How to fix it? Error: The settings on this account do not allow you to add comments. at SteamCommunity.<anonymous> (D:\Websites\SteamBot\node_modules\steamcommun ity\components\users.js:154:13) at Request._callback (D:\Websites\SteamBot\node_modules\steamcommunity\compo nents\http.js:67:15) at Request.self.callback (D:\Websites\SteamBot\node_modules\request\request. js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (D:\Websites\SteamBot\node_modules\request\request.js :1157:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage.<anonymous> (D:\Websites\SteamBot\node_modules\request\re quest.js:1079:12) at Object.onceWrapper (events.js:313:30)
  2. Yea the comments are on public. But it tries to post the comment before the login. How to make to post the comment after login. This is the full code: const SteamCommunity = require('steamcommunity'); let community = new SteamCommunity(); const config = require('./config.json') var SteamUser = require('steam-user'); var client = new SteamUser(); client.logOn({ "accountName": config.username, "password": config.password, }); client.on('loggedOn', function(details) { console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID()); client.setPersona(SteamUser.EPersonaState.Online); }); client.on('error', function(e) { console.log('An error ocurred:') console.log(e); }); client.on("friendMessage", function(steamID, message) { console.log("Friend message from " + steamID+ ": " + message); if (message == "Ping") { client.chatMessage(steamID, "Pong"); console.log("Send back: Pong"); } else { client.chatMessage(steamID, config.greetMsg); console.log("Send back the standard reply"); } }); function commentOnUserProfile(steamID, message) { community.postUserComment(steamID, message, function(err) { if(err) { console.log(err); } else { console.log('Successfully commented: ' + message) } }); } var user = config.toWho; var message = config.comment; commentOnUserProfile(user, message);
  3. It can post comments, In normal style:
  4. Thank you a lot. The last problem I have. The code is: function commentOnUserProfile(steamID, message) { community.postUserComment(steamID, message, function(err) { if(err) { console.log(err); } else { console.log('Successfully commented: ' + message) } }); } var user = config.toWho; var message = config.comment; commentOnUserProfile(user, message); And the error I get is: (First my settings was comments - private-only, but i changed it to public and I get this error) Error: The settings on this account do not allow you to add comments. at SteamCommunity.<anonymous> (D:\Websites\SteamBot\node_modules\steamcommun ity\components\users.js:154:13) at Request._callback (D:\Websites\SteamBot\node_modules\steamcommunity\compo nents\http.js:67:15) at Request.self.callback (D:\Websites\SteamBot\node_modules\request\request. js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (D:\Websites\SteamBot\node_modules\request\request.js :1157:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage.<anonymous> (D:\Websites\SteamBot\node_modules\request\re quest.js:1079:12) at Object.onceWrapper (events.js:313:30)
  5. Hey guys, I'm trying to make a bot that posts comments every 3 secs on a profile. I'm new to JS, I don't know so much and don't know how to do this. I want to make a log-on to steam, then my bot needs to post a comment like 5 times to profile, waiting 3 secs before posting again.Please help.
×
×
  • Create New...