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. But steam-user inviteToGroup works fine. Though earlier inviteUserToGroup worked as it should.Can you tell me why ?
  2. Hello there, I am very new to node.js and learning step by step, I had a look at many topics in this forum to learn some basics of trading codes, I need little help here, I want to connect to database, retrieve steam trading card names from database (like Alpaca Mage, Mysterious Card 4 etc.) and send a trade offer containing only those trading cards. I also want my bot to check my database like every 10 seconds and if a value i want is found, it will create a trade offer. Is something like this possible ? Thanks in advance
  3. http://prntscr.com/lv0q6u my developer is busy for few days. can anyone give me any idea why this happens so i could fix it? it happens after 24 hrs etc when bot is working
  4. Is there any way to learn if an offer between 2 different steam accounts (that are not mine) got accepted or declined ? I would like to create a website in which people advertise their cs go skins and others buy it, the skins are traded via their own steam accounts but i need to learn if the skin gets to buyer or not ? Is there any way to do that ? Thanks in advance
  5. Hy, i'm new in node js, my english is not that good. First, i wanna make a script which is load the player's inventory, accept all keys expect low price keys (like hydra case key or CSGO capsulekey),t hen select ? keys (depends on what command he uses in the chat (!buyadmin->3keys, !buyvip->2keys)). After the select, the bot will send an offer for the keys and he gets his rank (I can make this part). I have a starter script (I tried to learn and code something). Code: const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp');const SteamID = require('steamid');const SteamCommunity = require('steamcommunity');const TradeOfferManager = require('steam-tradeoffer-manager');const config = require('./config.json'); const client = new SteamUser();const community = new SteamCommunity();const manager = new TradeOfferManager({ steam: client, community: community, language: 'en'}); const logOnOptions = { accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret)}; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('[Vortex] Sikeres bejelentkezés a steam-be!'); client.setPersona(SteamUser.Steam.EPersonaState.Online); client.gamesPlayed(730);}); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, config.identitySecret);}); manager.on('newOffer', offer => { if (offer.partner.getSteamID64() === 'config.owenerID') { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`[Vortex] Owner csereajánlat elfogadva. Státusz: ${status}.`); } }); } }); client.on("friendMessage", function(steamID, message) { if (message == "!help") { client.chatMessage(steamID, "[Vortex] Parancsok: !weboldal, !szerverek, !rangok, !adminok, !buyadmin, !buyvip+, !buyvip, !buypskin");console.log(steamID.getSteam2RenderedID()); } if (message == "!weboldal") { client.chatMessage(steamID, "[Vortex] Weboldalunk: ");console.log(steamID.getSteam2RenderedID()); } if (message == "!szerverek") { client.chatMessage(steamID, "[Vortex] Szervereink: ");console.log(steamID.getSteam2RenderedID()); } if (message == "!rangok") { client.chatMessage(steamID, "[Vortex] Rangok: ");console.log(steamID.getSteam2RenderedID()); } if (message == "!adminok") { client.chatMessage(steamID, "[Vortex] Adminok: ");console.log(steamID.getSteam2RenderedID()); } if (message == "!buyadmin") { client.chatMessage(steamID, "[Vortex]");const steam2id = (steamID.getSteam2RenderedID());const steamid = (steamID.getSteamID64());const offer = manager.createOffer(steamid); community.getUserInventory(steamid, 730, 2, false, function(err, inventory) {console.log(inventory[0].amount);}); } if (message == "!buyvip+") { client.chatMessage(steamID, "[Vortex]"); } if (message == "!buyvip") { client.chatMessage(steamID, "[Vortex]");console.log(steamID.getSteam2RenderedID()); } if (message == "!buypskin") { client.chatMessage(steamID, "[Vortex]");console.log(steamID.getSteam2RenderedID()); } if (message != "!help" && message != "!weboldal" && message != "!rangok" && message != "!adminok" && message != "!buyadmin" && message != "!buyvip+" && message != "!buyvip" && message != "!buypskin"){client.chatMessage(steamID, "[Vortex] Nincs ilyen parancs, segítségért írd be: !help");}}); manager.on('newOffer', offer => { if (offer.itemsToGive.length === 0) { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log('[Vortex] Támogatás elfogadva. Státusz: ${status}.'); } }); } else { offer.decline(err => { if (err) { console.log(err); } else { console.log('[Vortex] Támogatás elutasítva. (Tárgyat akart kérni a bot-tól!)'); } }); }}); (steamID.getSteam2RenderedID()); -> I need this for sourcemod admin setup.
  6. I am working on a site and want to get steam items with nodejsand express i understand how to get item inventory and i am using the get-steam-inventory npmmodule and not sure on why the backpack is not being generated in the express below is the price.js file i have for price.pug and in the pug file i call each item in items and cannot get the value of length any help would be appreciated var express = require('express'); var router = express.Router(); //var pages = require('../pages/Pages.json'); //var quality = require('../public/730/quality.json') var fs = require('fs'); var data; var steamid; var backpack; var appid = 440; const steaminventory = require('get-steam-inventory'); /* GET users listing. */ router.get('/', function(req, res, next) { // render template steamid = req.user.steamid var path = './public/json/'+steamid+'.json'; checkFile(path); res.render('price', {user: req.user, items: req.backpack}); console.log(backpack) }); function checkFile(path) { try { if (fs.statSync(path)) { fs.readFile(path,"utf8", (err, backpack) => { if (err) throw err; backpack = backpack }); } } catch(err) { steaminventory.getinventory(appid, steamid, function(err, items){ if(err) { return console.log("Error, while getting user items. Please check settings or user inventory is hidden."); } else { if (items){ fs.writeFile(path, JSON.stringify(items.raw, null, 4), { flag: 'w' }, function (err) { if (err) throw err; console.log('\x1b[32m','The file has been saved!','\x1b[0m'); }); } checkFile(path) } }) } } module.exports = router;
  7. Hello everyone ! So I spent the last few weeks trying to create a bot that basically trades random steam cards for Steam Game Keys (with a lot of help from Vanilla ;p ) I am now pretty much done with all the trading stuff, and the last thing that I need is to get the Steam Key from my file. Basically, my goal is to - Count how many keys in total are in my .txt or .csv or .anything file and get that to a variable so I can add a line earlier in the code which checks if i have enough keys left before accepting the cards - Get the key(s) from the file (in order to send them in chat) -move the used keys to another file or modify their line to mark them as 'inactive' or something. Here is the part where I stopped : else { totalKeyWeGive = cardCount / cardToKey; console.log("We will give "+totalKeyWeGive+ " SteamKey"); offer.accept(); console.log("OFFER ACCEPTED"); //loop on how much we give the key for (i = 0; i < totalKeyWeGive; i++) { //get steamkey from file here ---------------------------------------------------------------------------- } var textMsg = "Hello ! You bought "+totalKeyWeGive+ " Game keys. Your keys are: "; } client.chatMessage(offer.partner.getSteamID64(), textMsg); } I already have most of the variables setup, and processed earlier in the code : cardToKey - How many cards are needed for one key cardCount - How many cards are there in the offer totalKeyWeGive - If everything is okay in the trade, how many keys should we give Any advices on how I should handle this ?
  8. Hello, I'd like to ask if there is something like getGameBadgeLevel, but for another user.
  9. Hello, I'm currently stuck with something that I assume is very simple, but I can't find any tutorial or help about it anywhere on the internet... I'm currently trying to create a bot that trades random Steam game codes for random steam cards, but my problem right now is that I don't know how to check if all items that the bot will receive are trading cards. I'm aware that this probably is a really easy thing, but I really have no idea where to find my answers :/ Thanks a lot for reading this, hopefully you can me with that This is what I have done so far : //This is where the pain begins. function processOffer(offer) { if (offer.partner.getSteamID64() === config.ownerID) { acceptOffer(offer); } else if (offer.isGlitched() || offer.state === 11) { console.log("Offer was glitched, declining."); declineOffer(offer); } else { var theirItems = offer.itemsToReceive var ourItems = offer.itemsToGive }} manager.on('newOffer', (offer) => { console.log("Offer received, processing"); processOffer(offer); })}
  10. i am trying to get the current xp of a user and the xp required to achieve a level but i don't know how to see how much xp they currently have? is there something built into steam-user or should i use another module? here is my code for the command function level(steamID, level){ client.getSteamLevels([steamID], function(results){ console.log("level: " + results[steamID] + "xp: " + results[steamID].xp); // just gives me undefined for the result for xp if(level === undefined){ level = results[steamID]; } if(level >= results[steamID]){ client.chatMessage(steamID, "You would need " + /*xp required here*/ + "more xp for level " + level); } else{ client.chatMessage(steamID, "Please enter a higher number"); } });}
  11. I am trying to get the tf2 quantities, but how am I supposed to get it. I saw on the post that you need an item tag, but how do I get it?\ LINK: https://dev.doctormckay.com/topic/1863-how-do-i-identify-tf2-qualities/
  12. How to fix it i try all webLogOn script but dont working ı use this commands; const async = require('async'); const TradeOfferManager = require('steam-tradeoffer-manager');var manager = null; const SteamCommunity = require('steamcommunity');var community = null;const WebAPI = require('@doctormckay/steam-webapi');var api = null;const SteamID = require('steamid'); const steam = require('./steam');const users = require('./users');const files = require('./files'); var first = true;var ongoing = false; exports.setup = (client, cookies, callback) => {manager = new TradeOfferManager({steam: client,domain: "example.net"});community = new SteamCommunity(); manager.setCookies(cookies);community.setCookies(cookies);api = new WebAPI(files.getConfig().apikey);if(first) {callback();first = false;}registerEvents(); community.on("sessionExpired",function(err) {client.webLogOn();});
  13. Can you help me i dont know how to create this function with command !all take all partner cupons to offer. client.on("friendMessage", (partner, message) => { if(message === "!all"){ const offer = manager.createOffer(partner); manager.loadUserInventory(partner, 753, 3, true, (err, theirInv) => { if (err) { console.log(err); } else { const theirItem = theirInv[Math.floor(Math.random() * theirInv.length - 1)]; offer.addTheirItems(theirItem); offer.setMessage( `U cuppon` ); offer.send((err, status) => { if (err) { console.log(err); } else { console.log(`Sent offer. Status: ${status}.`); } }); } } ); } });
  14. I have a site i am creating in nodejs based on my code in php and wandering how to call steam api json json like https://steamcommunity.com/profiles/76561198076819824/inventory/json/440/2/I know how to use Express js but i am unfamiliar with how to Call GET for JSON
  15. I want to confirm offer from server app but i am also using SteamDesktopAuth and while i am trying to confirm it there is a error: Error: It looks like your Steam Guard Mobile Authenticator is providing incorrect Steam Guard codes. This could be caused by an inaccurate clock or bad timezone settings on your device. If your time settings are correct, it could be that a different device has been set up to provide the Steam Guard codes for your account, which means the authenticator on this device is no longer valid. at /usr/home/MMMM/domains/XXX/public_trade2/node_modules/steamcommunity/components/confirmations.js:33:14 at SteamCommunity.<anonymous> (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/steamcommunity/components/confirmations.js:276:3) at Request._callback (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/request/request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/request/request.js:1161:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Gunzip.<anonymous> (/usr/home/MMMM/domains/XXX/public_trade2/node_modules/request/request.js:1083:12)So it is possible to confirm it from server?
  16. I don't understand what to put in the username and password fields, My main steam account? I've got it logged it but i left the two fields and twoFactorCode Blank. Do I manually register a new steam account through steam? I'm trying to make a trading bot. I understand this is a stupid question, any help would be appreciated.
  17. hello i need the inventory value from a Steamid64. How do i do that. Sry that iam asking but iam kinda new here thanks for ur help
  18. Since the latest UI update I'm not able to get this event, does anyone know what changed? I can't even get a simple console.log out of it anymore.
  19. Hello guys, My bot has !check [n] command which tells how much sets you get for a certain key. I want it as well to calculate the level the buyer would get if he bought that amount of sets. For example !check 5. For 5 keys you get let's say 50 sets. That is 5000 experience. I thought about adding that to current experience of buyer and then somehow calculating which level would that be. I will appreciate any ideas and suggestions. Thanks in advance.
  20. Hey, I have a problem with changeEmail function. It worked for me untill 2 October 2018, but now when I am trying to use it, it says Access Denied. Can you check it and tell me what happened?
  21. Hello. I have trouble with node-steam-totp module to work properly for me. The code I use: var SteamTotp = require('steam-totp'); var secret = 'secret_stuff'; setInterval(function () { console.log('Code #1 = ' + SteamTotp.generateAuthCode(secret)); SteamTotp.generateAuthCode(secret, function (error, code, offset, latency) { console.log('Code #2 = ' + code); }); }, 5000); I'm using secret_1 value from WinAuth. Codes are generated perfectly fine by WinAuth but both codes generated by code above are invalid. The secret I'm using is correct (I removed it from code snippet for security reasons). Do i miss something or is there something wrong with the module itself? Both node js code and WinAuth are running on the same machine and I'm using latest version of node-steam-totp. I'm happy to provide additional info if needed. Thanks in advance for any help.
  22. I have a function which checks the input is in json data from url. How can i implement async await into it? I've got no success. All my attempts were returning pending promises. function checkUser(id){ var url = 'http://mywebsite.com'; var jsonObject; request(url, function (error, response, body) { if (!error && response.statusCode == 200) { jsonObject = JSON.parse(body); if (jsonObject.hasOwnProperty(id)) return jsonObject[id]; else return 0; } }); }
  23. how can i get friends/mine games using node-steam-user?
  24. I know the steam api doesnt have an api to send steam tradeoffers in php how can i send one by trade link? I want to have a site that u Select items to buy and it will send trade offers with those items and wandering how to do it from php with the trade offer link
  25. Hi there, I'm trying to get my bot to accept friends request from members from my group. My code is not fully working, it keep getting errors at "community.groups(steamid). Here is my code: client.on("friendRelationship", (steamid, reletionship, name) => { if (reletionship === 2) { var userGroups = community.groups(steamid) if (userGroups.indexOf(wantedGroupID) != -1) { client.addFriend(steamid); client.chatMessage(steamid, `Thank you for adding me!`); console.log(`Friends request from ${name} accepted, IdleNet member. SteamID: ${steamid}`); } else { client.removeFriend(steamid); console.log(`Ignored friends request from ${name}, not in the IdleNet group. SteamID: ${steamid}`); } } });This is before my code: const SteamUser = require('steam-user'); const SteamTotp = require("steam-totp"); const SteamCommunity = require("steamcommunity"); const TradeOfferManager = require("steam-tradeoffer-manager"); var wantedGroupID = 'groupid'; const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, language: "en" }); const logOnOptions = { accountName: 'name', password: 'pass', twoFactorCode: SteamTotp.generateAuthCode("secret") }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('Logged into Steam'); client.setPersona(SteamUser.Steam.EPersonaState.Online) client.gamesPlayed("Testing"); }); client.on("webSession", (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, "secret"); }); Could someone help me ? Thanks !
×
×
  • Create New...