Jump to content
McKay Development

Search the Community

Showing results for tags 'node-steam-user'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

  1. Hey, much time, when the bot start/restart/crashed it comes Steam Guard App Code: But why? I dont can find this... Is this cause i used with App Guard? "domain": 'MYDOMAIN.com'
  2. I am wondering what is the bast way to manage multiple bots. Currently I am creating multiple instances for example: var client1= new SteamUser();// Sign into Steamclient1.logOn({ accountName: config.client1.username, password: config.client1.password, twoFactorCode: SteamTotp.generateAuthCode(config.client1.secret)}); var client2= new SteamUser();// Sign into Steamclient2.logOn({ accountName: config.client2.username, password: config.client2.password, twoFactorCode: SteamTotp.generateAuthCode(config.client1.secret)}); Is this the best way to do that? Also do i need apy key for each bot? To retrieve the api key from steam i have to make purchase for 5$, but if I have 100 bots, have to pay 500$. Steam -> "You will be granted access to Steam Web API keys when you have games in your Steam account." If i try to login and add cookies i have this error: 'error: Unable to set trade offer cookies: Error: Access Denied'
  3. How do I use the on 'save' and on 'read' functions? When I'm doing it like this: const user = new SteamUser(); user.logOn(); user.storage.on('save', function(filename, contents, callback) { // filename is the name of the file, as a string // contents is a Buffer containing the file's contents // callback is a function which you MUST call on completion or error, with a single error argument // For example: console.log(filename, contents, callback); }); user.storage.on('read', function(filename, callback) { // filename is the name of the file, as a string // callback is a function which you MUST call on completion or error, with an error argument and a Buffer argument // For example: console.log(filename, callback); });I just get the output on start of my electron app: cellid-86[...].txt 91 (err) { if(callback) { callback(err || null); } } servers.json [91, 10, 9…] (err) { if(callback) { callback(err || null); } } So first this 'cellid-...txt' file and then the 'server.json'. But when I start an actual game via steam and close it the 'save' or 'read' event functions aren't called.
  4. Is there any way to identify chat message? Like if people say hi to you and you will say hi or hello?
  5. hi i wanted to ask if and when yes how i can bind ips in node-steam-user like here https://github.com/DoctorMcKay/node-steam-client#cmclient
  6. Hello, I'm really new to node.js and everything that comes with it and for now I'm really enjoying it! However, I've run into a problem, which has more to do with cosmetics than anything else. friends.on("friendMsg", function(steamID, msg, type) { var steamName = client.getAliases(steamID, function(err, results) { if (err) { console.log(err); } else { console.log(results); } }); if (type == Steam.EChatEntryType.ChatMsg) { console.log("Friend message from " + steamName + ": " + msg); if (msg == "Ping") { friends.sendMessage(steamID, "Pong"); console.log("Send back: Pong"); } else { friends.sendMessage(steamID, config.greetMsg); console.log("Send back the standard reply"); } } }); When someone sends a message to the bot, it returns a standard greeting. Well that works great. Even the fact that when a user types: "Ping" it returns "Pong". The problem is the fact that I want to see this in the console: "Friend message from " + steamName + ": " + msg Right now, I've got it working that the steam name is shown as the steam64 ID (not in this code), but for aesthetics, I'd like to see the current username of the person the bot is chatting with on Steam. It seems like this can be achieved with .getAliases or .getPersona, but I can't seem to get it to work. Could someone help me out with this or is it just not possible? Thanks a lot!
  7. I want to create many accounts in short time. But after two success account create can't create more not working. I guess steam block you after two account create. Also i add third minutes for each create still not work after two.
  8. i am create new account. can i enable two factor with limitation? when i am trying enable, get error 2.
  9. how to receive ticket? such as steamworks SteamUser()->GetAuthSessionTicket()
  10. Hello! I need some help with node-steam-user. I'm getting this error: Cheers
  11. Hello everyone! I wonder, suppose I logged into steam-user, set cookies for community and tradeoffer-manager. When I restart a bot would that session be considered for steam backend as a new device and will I get a penality (7days without trades) ? What's the steps needed to maintain stable session without getting penalitites for a trade bot. I'm asking because I just switched to SDA and using steam-totp with shared_secret to generate two factor auth code (and I got 7 day penality and I can't notice whether the penality has reset or not).
  12. Ive been getting into nodejs a few months ago and found out about this module a week ago. I started playing around a bit and managed to make myself a nice hour idling script. Ive achieved that with a lot of trial&error + the help of some rather experienced friends. But now Im stuck: Im trying to log into an account that has mobile auth enabled. Ive read into this a little, and its a bit too high for me. Now I hope that an experienced coder/someone who has already done this before could quickly break it down for me, or if it really just is too complicated, tell me so. Thanks in advance, I really hope that I can sometime give something back to this community.
  13. So, sorry for my noobness, how do you generate shared secret to use with 2FA (steam-totp)?
  14. I might be doing this wrong. This is my code: client.on("chatUserLeft", function(chatID, userID) { if (userID.getSteamID64() !== owner) { client.chatMessage(userID, "I hope your issue has been resolved! Whenever you have another question feel free to open another chat :)"); } client.leaveChat(chatID); }); owner = my steamid64. The error I'm getting: C:\Users\Tim\Desktop\Steam Bots\Assistant\node_modules\steam-user\components\chat.js:512 delete this.chats[sid64].members[target64]; ^ TypeError: Cannot read property 'members' of undefined at SteamUser._handlers.(anonymous function) (C:\Users\Tim\Desktop\Steam Bots\Assistant\node_modules\steam-user\components\chat.js:512:28) at SteamUser._handleMessage (C:\Users\Tim\Desktop\Steam Bots\Assistant\node_modules\steam-user\components\messages.js:198:29) at emitThree (events.js:116:13) at CMClient.emit (events.js:194:7) at CMClient._netMsgReceived (C:\Users\Tim\Desktop\Steam Bots\Assistant\node_modules\steam-client\lib\cm_client.js:278:8) at CMClient.handlers.(anonymous function) (C:\Users\Tim\Desktop\Steam Bots\Assistant\node_modules\steam-client\lib\cm_client.js:386:8) at CMClient._netMsgReceived (C:\Users\Tim\Desktop\Steam Bots\Assistant\node_modules\steam-client\lib\cm_client.js:260:24) at emitOne (events.js:96:13) at TCPConnection.emit (events.js:188:7) at TCPConnection._readPacket (C:\Users\Tim\Desktop\Steam Bots\Assistant\node_modules\steam-client\lib\tcp_connection.js:73:7) [nodemon] app crashed - waiting for file changes before starting... Help is appreciated.
  15. Firstly I would like to say that you made amazing job! I have a few questions and suggestions. Questions: 1) createAccount() works great. But If I understand correctly It creates accounts through Steam client. Is it safe to create for example 30 or more accounts at once? Does Steam register my machine ID or just IP when I am using this function? 2) Is it possible to change account store country? (not profile country) 3) Is it possible to change email or password? If not, Is it hard to implement this kind of functionality?
  16. Hello I have a couple of questions regarding the tradeOffers event and changes in trade offer states. Is the tradeOffers event only emitted when receiving a new trade offer? Is there an event that is emitted when a trade offer changes state? Is the only way to detect changes in trade offer states to poll Steam API GetTradeOffers? What are the rate limits of Steam API GetTradeOffers, is it based on IP Address or Steam Account, or?Thank you for any support, really loving your libraries.
  17. Title, I am trying to use steam-user with csgo, https://github.com/joshuaferrara/node-csgo.
  18. I am trying to provide a tool that allows the app to login a user, find if a game in the user's library is installed locally or not, and find the location of that installation. It is not real clear to me how to go about doing this or even how to get the information about a particular app in general using the steam node based apis. Can anybody help?
  19. I am using steam-user for steam session on my bot. my app listening event webSession. But sometime session had been expired, but event not emit. And for every offer i get error (HTTP 401 e.g.) I wanna gather all error (401 and etc.) and if i get this error on callback for offer - to make force relogin. My way of thinking is right?
  20. Hello! I am having an error with my bot about login. I currently have this error. error: Error: RateLimitExceeded at SteamUser._handlers.(anonymous function) (C:\Users\Richard\Desktop\Steam\NodeJS\CombinedBot\node_modules\steam-user\components\logon.js:320:16) at SteamUser._handleMessage (C:\Users\Richard\Desktop\Steam\NodeJS\CombinedBot\node_modules\steam-user\components\messages.js:198:29) at emitThree (events.js:102:20) at CMClient.emit (events.js:175:7) at CMClient._netMsgReceived (C:\Users\Richard\Desktop\Steam\NodeJS\CombinedBot\node_modules\steam-user\node_modules\steam-client\lib\cm_client.js:278:8) at CMClient.handlers.(anonymous function) (C:\Users\Richard\Desktop\Steam\NodeJS\CombinedBot\node_modules\steam-user\node_modules\steam-client\lib\cm_client.js:386:8) at CMClient._netMsgReceived (C:\Users\Richard\Desktop\Steam\NodeJS\CombinedBot\node_modules\steam-user\node_modules\steam-client\lib\cm_client.js:260:24) at emitOne (events.js:77:13) at TCPConnection.emit (events.js:169:7) at TCPConnection._readPacket (C:\Users\Richard\Desktop\Steam\NodeJS\CombinedBot\node_modules\steam-user\node_modules\steam-client\lib\tcp_connection.js:73:7) Can anyone tell me what Rate Limit is ? And also, how can I avoid exceeding it in the future? Steam is not letting me login to that account from my ip, i've waited about an hour since last attempt and still got disconnected. Also, my code here could help. function LogOn() { client.setOption("promptSteamGuardCode", false); client.logOn({ "accountName": secondconfig.username, "password": secondconfig.password }); client.on("error", function(error){ logger.error(error); }); client.on("webSession", function(steamID, cookies) { community.setCookies(cookies); steamTrade.sessionID = cookies[0].split("=")[1]; cookies.forEach(function(cookie) { steamTrade.setCookie(cookie); }) SteamTotp.steamID = steamID; community.startConfirmationChecker(2500, secondconfig.identitysecret); }) client.on("steamGuard", function(domain, callback, lastCodeWrong) { if(lastCodeWrong) { logger.warn("Last Code was Wrong... trying again!"); } var shared_secret = secondconfig.sharedsecret; callback(SteamTotp.generateAuthCode(shared_secret)); }); // Bot started, set up trade offer with steam api key client.on("loggedOn", function(details){ logger.info("Logged onto Steam! With the SteamID of " + client.steamID.getSteam3RenderedID()); client.setPersona(Steam.EPersonaState.Online); client.gamesPlayed(440); //webLogOn(); }); } LogOn(); I made LogOn(); into a method, because I want to be able to restart the bot via a message from a user like !restart. You can see that code here steamFriends.on('friendMsg', function(id, msg, type) { if(type == Steam.EChatEntryType.ChatMsg){ switch(msg) { case "!help": steamFriends.sendMessage(id, "Hello! I'm an bot that buys Mann Co. Audition Reels and Mann Co. Directors Cut Reels!"); break; case "!restart": logger.info('Restarting Bot!'); steamFriends.sendMessage(id, "Restarting in 3 seconds..."); client.logOff(); setTimeout(LogOn, 3000); } } }); When I called the !restart command, the bot stopped, then attempted to login, and I got my Last Code Wrong warning about 10-15 times before the bot got the rate limit error. What can I do ?
  21. Like for example if a user sends a link with a picture trough steam chat the bot will take that picture and use it as its own [restricted to admin only ofcourse] Is something like this possible if so how?
  22. I'm using the Doctor McKay library for login and trade starting, but I am then using seishun's steam-trade to automate trading. Here's my current code. client.on("tradeRequest", function(steamID, respond) { logger.info("Incoming Trade Request from " + steamID.getSteam3RenderedID()); respond(true); }) client.on("tradeStarted", function(steamID) { steamTrade.open(JSON.stringify(steamID)); }) steamTrade.on('offerChanged', function(added, item) { console.log('they ' + (added ? 'added ' : 'removed ')); console.log(item); for(var i = 0; i < steamTrade.themAssets.length; i++) { console.log(steamTrade.themAssets[i]); } }); When I log the item , the console prints out undefined and returns an error. (I assume this means the item is undefined?) Seishun told me that the reason this happens is because the tradeStarted event returns steamID as an object, not a string? I thought the JSON.stringify would convert this object to a string, but obviously I am mistaken? C:\Users\Richard\Desktop\Steam\NodeJS\GlitchedTurtleBot\node_modules\steam-trade\index.js:208 return self._themInventories[item.appid][item.contextid][item.assetid]; ^ TypeError: Cannot read property '2' of undefined at C:\Users\Richard\Desktop\Steam\NodeJS\GlitchedTurtleBot\node_modules\steam-trade\index.js:208:47 at Array.map (native) at SteamTrade._onTradeStatusUpdate (C:\Users\Richard\Desktop\Steam\NodeJS\GlitchedTurtleBot\node_modules\steam-trade\index.js:206:72) at Request._callback (C:\Users\Richard\Desktop\Steam\NodeJS\GlitchedTurtleBot\node_modules\steam-trade\index.js:244:10) at Request.self.callback (C:\Users\Richard\Desktop\Steam\NodeJS\GlitchedTurtleBot\node_modules\steam-trade\node_modules\request\request.js:187:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (C:\Users\Richard\Desktop\Steam\NodeJS\GlitchedTurtleBot\node_modules\steam-trade\node_modules\request\request.js:1044:10) at emitOne (events.js:77:13) at Request.emit (events.js:169:7)
  23. Hey, I need to use a function from node-steam-user (adding friend). How can I log in on steam-user using node-steamcommunity? I don't see in the wiki any setcookie option, is there any easy option in this package or I have to log in manually?
×
×
  • Create New...