Search the Community
Showing results for tags 'Question'.
-
When i send a few trades to my bot one of them can be confirmed by mobile and displayed in send trades list, but not listed in bot incom trades. Probably its a steam issue, but maybe this is somehow connected with poll frequency.(Poll time 10s). And this bugged trade will only appear if i send one more trade. Sender acc Bot acc in same time
-
var client = new SteamUser(); var community = new SteamCommunity(); var manager = new TradeOfferManager({ "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "example.com", // Our domain is example.com "language": "en", // We want English item descriptions "cancelTime" : 120000 //Cancellation Time in miliseconds 1000 ms = 1 second, After 2 minute cancel trade }); var offer = manager_coinflip.createOffer(user_trade_url); offer.addTheirItems(inv_to_trade); offer.setMessage(secretMessage); offer.send(function (err, status) { community.acceptConfirmationForObject("identitySecret", offer.id, function(invAcceptErr) { if (invAcceptErr) { //Here I got error but do not print any error message in Console.log("Winner Trade Accept Error : ",invAcceptErr); return true; } }); }) Note : In above code I am putted statatically "identitySecret". Is it correct? Please let me suggest where I am wrong ?
-
Hi everyone, have this nodejs backend which is calling the Steam api via passport-steam to log a user in. This is working and in this code I am getting the user back. app.get( //regex to validate auth/steam/ and auth/steam/return /^\/auth\/steam(\/return)?$/, passport.authenticate('steam', { failureRedirect: '/' }), (req, res) => { console.dir(req.user); res.redirect('/account'); } );So I have user as req.user in the callback after the Steam Login passes. My question is: What is the best (AND MOST SECURE!) way to pass this req.user to a route, which I will then call GET from the Frontend Framework so I can get this data to the Frontend? Furthermore, how does my Frontend communicate with my nodejs bot in a secure manner? (maybe this is a broad question but worht a try!) Right now I have this route set up: app.get('/account', (req, res) => { res.send({user: req.user}); });But user is null. Any help is appreciated!
-
Via https://github.com/DoctorMcKay/node-globaloffensive I can get stickerId which is on the weapon. Through the game files I can get a description of this sticker. But is there any way to get an image url of this sticker? I thought maybe could somehow get a link to an image through "sticker_material"?
-
Hi, I want to know if an API/github repo/anything provides a list of all items available for a game. Example: all CSGO items with their weapon, type, rarity, icon url, etc.. I would like the complete list to be able to query it. Eg: Find all covert. Find all mil-spec AK47. Find all Rifle covert, etc. For dota2 it's doable with the API method "GetSchemaURL" and then following the link provided : https://steamcdn-a.akamaihd.net/apps/570/scripts/items/items_game.802aed5ea680938e2c54fd4964713f9b07e48e4b.txt The same file for CSGO is pretty messy and don't contain items name. Any suggestions? Thanks
-
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); } });
-
As the title says, i want to change the default path of the certificate and key files. Is this posible?
-
Question How to have (offer) in exports
Lonster_Monster posted a topic in node-steam-tradeoffer-manager
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); }); -
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.
-
I got some questions: 1. Should i update the cookies? 2. When should i do it? 3. How can i do it?
- 4 replies
-
- node.js
- node-steam-user
-
(and 1 more)
Tagged with:
-
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 ?
-
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?
-
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.
-
Sometimes I get a message like "Steam Guard App Code" and I have to enter this code, how do I turn it off? Thanks
-
How can i use the bp.tf api to get my listing price and community price
-
Question How to use descriptions in pricing an item
Lonster_Monster posted a topic in node-steamcommunity
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: -
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);
-
How to use skipStateUpdate? Can you give one example from "offer.accept" to "offer.skipStateUpdate" please?
-
Question What Requires Steam API Key?
Lonster_Monster posted a topic in node-steam-tradeoffer-manager
What steam Bot Features Require the steam Api Key and how do i put it into the steam bot -
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