Jump to content
McKay Development

All Activity

This stream auto-updates

  1. Past hour
  2. I think I am using the latest version since I just installed the module const SteamUser = require('steam-user'); const config = require('./config.json'); const client = new SteamUser(); const logOnOptions = { accountName: config.username, password: config.password }; client.logOn(logOnOptions); client.on('loggedOn', () => { //mensaje cuando se logra iniciar sesion console.log('Entraste a Steam :)'); console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID() + " /// "); //ponerse el estado En Linea client.setPersona(SteamUser.EPersonaState.Online); //p
  3. D:\bot\bot.js:75 var persona = personas[steamID.getSteamID64()]; ^ TypeError: Cannot read property '76561198987247955' of null at D:\bot\bot.js:75:27 at Immediate.<anonymous> (D:\bot\node_modules\steam-user\node_modules\@doctormckay\stdlib\components\promises.js:90:6) at processImmediate (internal/timers.js:461:21)
  4. Today
  5. D:\bot\bot.js:75 var persona = personas[steamID.getSteamID64()]; ^ TypeError: Cannot read property '76561198987247955' of null at D:\bot\bot.js:75:27 at Immediate.<anonymous> (D:\bot\node_modules\steam-user\node_modules\@doctormckay\stdlib\components\promises.js:90:6) at processImmediate (internal/timers.js:461:21)
  6. The documentation is on GitHub. I would need to see the entire error output to help you with that at all.
  7. Hello, I am really new to this and I would very much appreciate you helping me, I already have time looking at the github but it confuses me since there are no examples, my question is how can I get the nickname when I receive a message from some steam friend? look they use getpersona but always sends me mistakes I had already left this behind but the truth is that I am not satisfied I just want to be able to do something like... [automatic message] Hello "nickname", I am currently resting blablabla
  8. Hi, I'm new, where can I find the documentation? I have error in "var persona = personas[steamID.getSteamID64()]; ^ in [
  9. Yesterday
  10. As tittle, since steam (web) use cookies (steamloginsecure etc.) to authorize user login, is there a way to make an already logged-in steam-community instance from cookies?
  11. You're using the automatic confirmation checker, which has had this notice on its documentation page for 3.5 years:
  12. Last week
  13. This same error keeps happening and I don't know how to fix it I've tried reinstalling the module and that doesn't seem to work. I've narrowed down where the error occurs and it seams to be occurring when it exits this: After that code the function ends and it stops managing the trade which is where the error seems to occur. Once processOffer is complete and it exits the manager on it seems to crash and I just need help fixing it please
  14. Connecting to TCP CM: 162.254.192.100:27019 TCP connection established Handled message: ChannelEncryptRequest Channel encrypt request: protocol 1, universe 1, nonce bc0de10cc2a4456ef794c347a 6cc2922, 0 remaining bytes Sending message: ChannelEncryptResponse Handled message: ChannelEncryptResult Sending message: ClientLogon Logon message timeout elapsed. Attempting relog. Looks to be a timeout error. I decided to create a new VPS (giving me a new IP) and sure enough, it works now! Seems like my old VPS
  15. There is no timeout for connection attempts because when Steam goes down, it can stay down for a while and we want to be able to reconnect automatically. Add this and you can get some more descriptive output: client.on('debug', (msg) => console.log(msg));
  16. Hello, I'm using the steam-user and steamcommunity packages to create a trade bot. When I run my node program on a VPS, the program fails to login into steam without emitting an errors. I presume this is because the VPS can't connect to Steam servers? But wouldn't a timeout exception occur? Here's my code: const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); var client = new SteamUser(); var logOnOptions = { accountName: this.doc.credentials.accountName, password: this.doc.credentials.password, twoFactorCode: SteamTotp.generateAuthCode(thi
  17. client.on('friendMessage', function(steamID, message){ var msg_him=Object.keys(Config.reply); var msg_my=Object.values(Config.reply); var replycount=msg_my.length; for (var i = replycount - 1; i >= 0; i--) { if (message==msg_him[i]) { //if (message.indexOf(msg_him[i]) >= 0) client.chatMessage(steamID,msg_my[i]); } } }) Config.js "reply":{ "谁是大帅比":"当然是venfiw", "代购":"当前代购折扣为:8折,需要7天以上Steam好友,请用QQ联系我, 554515860", "hello":"hi" } when some send hello in chat, ur bot will send hi or u can use : if (message.indexOf(
  18. https://github.com/DoctorMcKay/node-steamcommunity/wiki/CSteamUser#commentmessage-callback
  19. Currently there is getAllCommentsa and deleteComment I think we need createComment, what do you guys think?
  20. How do I when someone sends the link to a steam profile in the chat send request automatically
  21. Earlier
  22. id and assetid are the same thing, both property names are used for convenience. To identify an item, you'd need to check the appid + contextid + assetid combo. See also:
  23. Thanks so much for your help. So in a follow-up...would I need to locate items currently in a trade by: id? assetid? instanceid? I'm guessing the first but I'm not sure.
  24. The error event is only emitted (in this module) when you get disconnected from Steam, and the module will not attempt to auto-reconnect. Handling the error event isn't going to act like handling the uncaughtException event; it's not going to prevent crashes for other errors besides Steam disconnects.
  1. Load more activity
×
×
  • Create New...