Jump to content
McKay Development

All Activity

This stream auto-updates

  1. Last week
  2. No, that's not supported.
  3. Is it possible to use it on paints and paintable items?
  4. Ok, I was reporting a problem here. I have a lot of notifications: Unhandled message: ClientSessionToken. I would like to know what the returns and how to list in client.on?
  5. I'm not really sure what you're asking, but CSteamUser stuff does work.
  6. Great, works exactly as expected I guess other CSteamUser function works with community as well since its contained inside steamcommunity module, am i wrong?
  7. Use community.steamID.getSteamID64(); no need to call getSteamUser to get your SteamID. Logging into a different account with the same SteamCommunity instance that was previously logged in isn't really supported. You should create a new SteamCommunity each time.
  8. Hi, is there a possiblity to get steamId64 [76561198097242611] for the current loggedIn account with (steamcommunity) ? Searched on the github for that and found that its used on CSteamUser, and other parts of the library together with `steamid` module. Im using async in the script to loop many accounts for some actions, and cant there is no way to put id for each account. Is there anything to replace '????' with current loggedIn account such as with sessionID or cookies... Edit: CSteamUser works with steamcommunity module √
  9. Earlier
  10. https://github.com/DoctorMcKay/node-steam-user/issues/384
  11. How do I disable or remove all notifications from downloading? notifications for example: ClientUserNotifications ?
  12. You're not actually logged on until the loggedOn event fires.
  13. Error: Cannot kick other session What may cause this? This is my code: app.js client.on('error', (error) => { log(`Error occured! Details: ${error}`); setTimeout(() => { client.logOff(); client.logOn(loginDetails); setOptions(client); log(`Account is playing in elsewhere, performing kick and relogging!`); client.kickPlayingSession((error) => { if(error) { log(`Error while trying to relog! Killing application...`); process.exit(1); return; } }); client.relog(); }, 30000); }); setOptions module (if somewhat needed): module.exports = function setOptions(client){ client.setOption("enablePicsCache", true); client.setOption("autoRelogin", true); client.setOption("picsCacheAll", true); client.setOption("changelistUpdateInterval", 60000); client.setOption("language", "english"); client.setOption("clientOS", 16); client.setOption("machineName", "Boosting by The M."); } I tried many different ways. I just need my bot to kick other playing session, and make his own :/
  14. Hey! I've did it, but just now I realised it didn't make me any hours, I still have the custom status.
  15. It looks like Steam doesn't want to send rich presence data when you use getPersonas, so requestRichPresence is the proper way to request that data. Your lack of a callback was a bug which is fixed in v4.20.2.
  16. Added previousRelationship argument to friendRelationship and groupRelationship events friendRelationship and groupRelationship events will now be suppressed if the new relationship matches our previously-known relationship Fixed requestRichPresence callback not working when omitting the language argument Fixed rich presence not parsing properly if the canonical case is not used for localization keys View on GitHub
  17. I am trying to receive the rich presence information of the account that is logged in and is playing the game with gamesPlayed() method. I have also used uploadRichPresence() to upload custom rich presence that is properly displayed in steam friends (Competitive - Mirage [0 : 0]). However whenever I call requestRichPresence() method I get no callback this.client.requestRichPresence(730, [this.client.steamID], () => { console.log("Requested rich presence information") }); Then I tried to grab the info using getPersonas with the steamID of the account, which gives the information, but the rich_presence method is empty list this.client.getPersonas([this.client.steamID], (err: string, personas: any) => { console.log(personas[this.client.steamID.getSteamID64()].rich_presence) }) Did I miss anything or those methods no longer work? I am using node-steam version 4.20.1
  18. This should make the displayed game "Idling Hours", but sometimes Steam can be temperamental when it comes to custom game names. bot.gamesPlayed(['Idling Hours', ...this.games])
  19. newOffer shouldn't take longer than 30 seconds. It should be pretty much instant if you passed a SteamUser instance to TradeOfferManager. You might try outputting TradeOfferManager's debug output to see if anything is amiss: _manager.on('debug', (msg) => { console.log(`[TradeOfferManager Debug] ${msg}`); });
  20. Update - I've discovered this error was because I did not have a Steam developer API key for my bot account. These are available when you have games on your steam account valued at or above $5 USD. After remedying, this error no longer appears. However... The newOffer event is still not firing for me and I am not sure why... how long do I typically have to wait after making purchases for this to work?
  21. Hello! I got this code for now: bot.on('loggedOn', function() { console.log("["+ Date() + " " + this.username + "] Logged into Steam"); bot.setPersona(SteamUser.EPersonaState.5); bot.gamesPlayed(this.games); and I want to have a custom status saying for example "idling hours" and in the same time have a list of games to idle, the list of games is done already but I can't get the custom status to work with the games, I know you can idle more then 33 games but at that point it doesn't count hours anymore so I want the custom status to be last to be "idled" bot.gamesPlayed(this.games); bot.gamesPlayed("idling hours"); but it didn't work
  22. Failed to obtain API key. Error: Access Denied at SteamCommunity.<anonymous> (/storage/tradingbot/node_modules/steamcommunity/components/webapi.js:15:20) at Request._callback (/storage/tradingbot/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/storage/tradingbot/node_modules/request/request.js:185:22) at Request.emit (node:events:390:28) at Request.<anonymous> (/storage/tradingbot/node_modules/request/request.js:1154:10) at Request.emit (node:events:390:28) at Gunzip.<anonymous> (/storage/tradingbot/node_modules/request/request.js:1076:12) at Object.onceWrapper (node:events:509:28) at Gunzip.emit (node:events:390:28) at endReadableNT (node:internal/streams/readable:1343:12) SOURCE CODE: https://github.com/porkandbeans/tradingbot/blob/26ba3290cc0103cb37a17ba2c5b3bd5745fe25f8/bot.js#L109 I'm assuming SteamCommunity isn't supposed to be trying to get this data anonymously. What am I doing wrong here?
  23. The arguments are still domain, callback, lastCodeWrong on 3.29.3 as well.
  24. I use Version 3.29.3 from steam-user and there works this Code very well SteamGuard event fires only lastcodewrong if the Code is wrong otherwise not. I give him the Code over client.LogOn via TwoFactorCode But will check options from a newer Version Thx...
  25. The promptSteamGuardCode option was removed in v4. The prompting is now automatically disabled when you add a steamGuard event listener. The arguments for the steamGuard event are domain, callback, lastCodeWrong. With the code you pasted, lastCodeWrong will always be truthy because that's actually the callback you should call with your new code.
  26. Hey thank You for your Answer, i found this too today and i solve my Problem. // => IdleClient on/off Switch let online = 0; // Only a SNIPPET from my Chat Commands } else if(CONFIG.OWNER.indexOf(SENDER.getSteamID64()) >= 0 || CONFIG.OWNER.indexOf(parseInt(SENDER.getSteamID64())) >= 0) { // Admin Chat Commands if (MSG.toUpperCase().indexOf("!ONIDLE") >= 0) { let n = MSG.toUpperCase().replace("!ONIDLE ", "").toString(); IdleClient.setOption("promptSteamGuardCode", false); let IdleLogOnOptions = { accountName: CONFIG.IdleAccount.USERNAME, password: CONFIG.IdleAccount.PASSWORD, twoFactorCode: n }; IdleClient.logOn(IdleLogOnOptions); IdleClient.on("steamGuard", function(domain, lastCodeWrong) { if(lastCodeWrong) { sleep(1000).then(() => { client.chatMessage(SENDER, "⛔ You don't set the right SteamGuard Code!"); }); } }); IdleClient.on("loggedOn", function() { IdleClient.getPersonas([IdleClient.steamID], (personas) => { IdleClient.setPersona(SteamUser.Steam.EPersonaState.Online); IdleClient.gamesPlayed(CONFIG.IdleAccount.IDLEGAMES); }); console.log("[" + getTime() + "] [INFO] [IdleClient] Login successfully!"); sleep(1000).then(() => { client.chatMessage(SENDER, "✅ IdleClient Login successfully!"); }); online = 1; }); } else if(MSG.toUpperCase() === "!OFFIDLE") { if (online === 1) { online = 0; IdleClient.logOff(); sleep(1000).then(() => { client.chatMessage(SENDER, "✅ IdleClient Logout successfully!"); }); } else { sleep(1000).then(() => { client.chatMessage(SENDER, "⛔ IdleClient not running!"); }); }; Works like a Charm now, iam happy :-) EDIT: I don't know why this editor shows the code a bit shifted?!
  1. Load more activity
×
×
  • Create New...