Jump to content
McKay Development

Search the Community

Showing results for tags 'question'.

  • 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. Hello guys. I've got a problem which i cant decide by myself.. First problem was that my bot was going offline with no reason, but i decided it And now i got the second problem: After few hours (sometimes days) bot asking for steam guard code. In console it looks like: "Steam Guard Code:". Guys, need your help Thanks. Code: const config = require("./config.js"); const Config = require('config-js'); const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const TradeofferManager = require('steam-tradeoffer-manager'); const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeofferManager({ steam: client, community: community, language: 'en' // Может быть любой язык }); // Log in to account with config.js const logOnOptions = { "accountName": config.steam.username, "password": config.steam.password, "twoFactorCode": SteamTotp.generateAuthCode(config.steam.twoFactorCode) }; client.logOn(logOnOptions); // After success login client.on('loggedOn', () => { console.log('Bot succesfully authorized!'); client.setPersona(SteamUser.Steam.EPersonaState.Online, config.steam.botname); console.log('Bot status changed to "Online"'); }); // Thats how i solve problem with going offline community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); if (client.steamID) { client.webLogOn(); } else { client.logOn(logOnOptions); } }); // Thats my way to solve second problem, but it didnt help. client.on("steamGuard", function(domain, callback, lastCodeWrong) { if(lastCodeWrong) { console.log("Last code wrong, try again!"); setTimeout(function() { callback(SteamTotp.getAuthCode(config.steam.twoFactorCode)); }, 30000); } });
  2. As the title says, i want to change the default path of the certificate and key files. Is this posible?
  3. I have been working on a tradelog code and i need to get the (offer) from the trade when it processes the trade i dont know the correct way to export the offer from manager.on('newOffer', (offer) => { processOffer(offer); });
  4. I'm quite new to programming and testing apps and I wonder how do I test methods and functions related to an API like Steam? I heard good things about Mocha, but I don't know how I should test for example trading? Thanks for any helping answers.
  5. I got some questions: 1. Should i update the cookies? 2. When should i do it? 3. How can i do it?
  6. TextDynasty

    Api

    How to request data from api
  7. For some reason I get RateLimitExceeded if bot frequently add friends. What's the limit on adding friends? Or the problem is not in the limit ?
  8. I know two methods (correct me if I am wrong) for getting the defindex of a CS:GO item: 1. It is actually not available anymore but back in the days (before March 2017) you could get someone's invetory list and one of the item attributes was defindex. 2. You can use inspectItem function from node-globaloffensive to get info about an item and one of the attributes is defindex. (side question here: could you confirm that you need CS:GO on your account to use this?) So my question is: are there other ways for acquiring this information?
  9. Hi all, when I was using steamcommunity.marketSearch() to gather item price data, sometimes will prompt up error with http-429( too many request). As I know, internally it will auto fetch the pages of item results, so it may trigger multiple requests, and sometimes got http-429 error. Questions: 1. Any one has idea to avoid triggering http code 429? 2. Or , is there any better ways to gather price info for such items ? Thanks.
  10. Sometimes I get a message like "Steam Guard App Code" and I have to enter this code, how do I turn it off? Thanks
  11. How can i use the bp.tf api to get my listing price and community price
  12. i have a genuine killer exclusive with the australium paint on it i done var item = ourItems[i].market_name; var des = ourItems[i].descriptions; console.log(item) console.log(des) if (item == stock[item] && des == stock[item].description){ if (item == Prices[item] && des == Prices[item].description){ console.log(Prices[item].sell) } } when it does the console log on item and des it shows "Genuine Killer Exclusive": [ { type: "text", value: "Paint Color: Australium Gold", color: "756b5e", app_data: "" }, { type: "text", value: "Break news, spirits and heads.", app_data: "" } ] i put the descriiption text in the stock under the item name and is the value of description like below { "Genuine Killer Exclusive": { "instock": 0, "stocklimit":1, "description": [ { "type": "text", "value": "Paint Color: Australium Gold", "color": "756b5e", "app_data": "" }, { "type": "text", "value": "Break news, spirits and heads.", "app_data": "" } ] } } the problem is with the "" around type, value, color, app_data, type, value, app_data it acts as if that is not the value but json wont work without the " " around the certain words SOLUTION:
  13. Im found only this but I do not know how to use it when I have it client.on('friendMessage', (steamid, message) please Help Thanks.2 message per sec or remove setInterval(() => { for (let i = 0; i < Object.keys(userMsgs).length; i++) { if (userMsgs[Object.keys(userMsgs)] > 2) { client.chatMessage(Object.keys(userMsgs), "You have been removed for spamming. Another offense will get you blocked."); client.removeFriend(Object.keys(userMsgs)); } } userMsgs = {}; }, 1000);
  14. How to use skipStateUpdate? Can you give one example from "offer.accept" to "offer.skipStateUpdate" please?
  15. I have a basic bot i created and would like to know how to beable to separate craftable item from uncraft. and the Documentation on it so i know what i am doing
  16. What steam Bot Features Require the steam Api Key and how do i put it into the steam bot
  17. I'm having some problems with this - not a big deal but I'd still like to know. Somehow some cards I am receiving in a trade don't have a market_hash_name. As far as I know all cards are marketable, so how is it possible that it doesn't have a market_hash_name? Language is set if that matters Edit: Language is only needed for descriptions right? I'd rather not use it because of all the descriptions it'll load but am not sure if that's actually how it works
  18. is this possible?
  19. When i send a trade offer i want to know when and if it is accepted or declined. Is this possible and how?
  20. I can't seem to find how to get the quality of an item in my/their offer. If I could actually just get all of the offer item variables that would be much appreciated. Thanks!
  21. I am a games collector. Recently I bought random Steam key, and tried to activate it on my account via helper bot I made. I received "AlreadyPurchased" result, but package id in response does not match package I own for this game (I own 79549, and failed to redeem key with 80925). I'm interested, in which cases Steam considers I already have this product? Is it compare app ids, or depots ids in packages, or something another? What if I want to own two packages with one game? For example, Call of Duty: Modern Warfare 3, that present in store (12205) does not have depot with russian language. But russian retail CD version (11616) contains ONLY russian. What can I do, if I want all languages? Can I activate both packages in some way, if I buy keys in retail? Thank's for answer.
  22. Hello, what I should to change if I want to use that custom useragent during login to Steam? const USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36";
  23. I have this code to get the items of a specific user, but it should work for every user in the world, so i want to use a variable instead of hardcoding the steamID64 into it, but i just can't get it to work var qqdata = steamID64; // the steamid64 of the user i want to get the inventory from const offer = manager.createOffer + qqdata; offer.getPartnerInventoryContents(730, 2, (err, inventory) => { if (err) { console.log(err); } else { for (var i = 0; i < inventory.length; i++) { setTimeout(function (i) { var name = "'" + inventory[i].market_hash_name + "'"; var image = "'" + inventory[i].icon_url + "'"; var sql = "INSERT INTO `inventorys`.`" + qqdata + "` (name, icon_url) VALUES (" + name + ", " + image + ")"; con.query(sql, function (err) { if (err) { console.log(err); } }); }, 10 * i, i); } } });
  24. 2 Questions. First one friendOrChatMessage triggers when a room message is typed but it also triggers when a steam message is typed? the room parm can be the room it is typed in or the steam id... Soooo how do i know if its a message in the room? or a message from a user? and 2. How do i send a message to a room that im in?
×
×
  • Create New...