Jump to content
McKay Development

Search the Community

Showing results for tags 'node.js'.

  • 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. I have an issue sending certain trade offers I got a piece of code that trades cards and it appears to work fine.. But sometimes it just says "Creating trade offer for #STEAMID with 102 items to send and 102 items to receive" But nothing ever happens. no trade offer is ever sent. any idea what that could be ? theres no errors or anything
  2. Hello, Im making a Announce bot on Steam I want to send all my friends a message here is the code i tried: message = "test" Object.keys(client.myFriends).some(r=>{ client.chatMessage(r,"\n" + message); console.log("Message Sended to " + r.toString()) }) Its only sending 3 or 2 guys in friend list and I checked the steamID's Any ideas ?
  3. I have some issues where i cant access my sent offers to cancel them is there anyway to get the list of pending sent offers and cancel them?
  4. Hi, I want my bot to comment on the user's profile upon a successful trade. I tried looking for it here: https://github.com/DoctorMcKay/node-steam-user#events- But I dont find it anywhere! Thanks!
  5. Hi, I have 2 things I'm not quite sure about: 1) Currently I use getUserInventoryContents(appid,contextid...etc) to load user's inventory as well as mine. Is it possible to select items from 2 different games in the same trade offer? For example: Their items in trade window will have both CSGO + Steam inventory items 2) How do I go about adding a certain amount of Steam Gems from user's / bot's inventory? I read this article: https://dev.doctormckay.com/topic/332-identifying-steam-items/ and know what asseid,contextid stands for, but I just can't figure out how to find a specific item in an inventory and select Steam gems for example Any help is appreciated!
  6. Hi, I need to know, how to send in offer items that user selected on website. I found only code that selects all items: for(i=0; i<itemsArray.length; i++){ const item = theirInv.find((item) => item.assetid ==''+itemsArray[i]); console.log("got item number" + i); offer.addTheirItem(item); } Also I don't understand how to make a webpage where user can select items for trade. User just need to click on his (or bot's) items, then press button for trade. Then somehow nodejs bot must to get trade url, items ids and start trade function. I know that I probably need to use ajax and curl, but just don't understand HOW Thanks
  7. I'm getting error 20 while trying to create an account via the module. Has anything changed on the module or it was a steam fuckup/change? Thanks!
  8. Hello, Everyone What I am trying to do is use Telegram and my own bot there to start and stop the steam idle bot my current code is below.So the problem I am having is I have no clue as to how to tell the bot to start playing a game from what I understand "client.on('loggedOn', function(details)" is what happens when the bot has logged on when i put "client.gamesPlayed([107410]);" it plays Arma 3 right when it log's on but I want it to stop and play another game and such. Really appreciate all feedback.
  9. I know that node-csgo is compatible with node-steam-user... But I can't get it to work. Can anyone send me a short working code please ?.
  10. I created a donation bot for a community and one of the users is unable to donate to the community's bot because the bot thinks that it has a bundle of trade offers with the user. What can I do to fix this issue? { Error: You have sent too many trade offers, or have too many outstanding trade offers with Jumpman652. Please cancel some before sending more. at Object.exports.makeAnError (/var/www/donationbot/node_modules/steam-tradeoffer-manager/lib/helpers.js:17:12) at SteamCommunity.manager._community.httpRequestPost (/var/www/donationbot/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:349:12) at Request._callback (/var/www/donationbot/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/var/www/donationbot/node_modules/request/request.js:186:22) at Request.emit (events.js:159:13) at Request.<anonymous> (/var/www/donationbot/node_modules/request/request.js:1163:10) at Request.emit (events.js:159:13) at IncomingMessage.<anonymous> (/var/www/donationbot/node_modules/request/request.js:1085:12) at Object.onceWrapper (events.js:254:19) at IncomingMessage.emit (events.js:164:20) at endReadableNT (_stream_readable.js:1054:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickDomainCallback (internal/process/next_tick.js:218:9) cause: 'OfferLimitExceeded', eresult: 25 }
  11. Hi, I'm a newbie coder and am having trouble with fetching csgo item images for an experimental exchange site. All this is what I have so far on deposit matters: This is the deposit section: http://prntscr.com/ik3xnx Here's the price update code: const _ = require('lodash'); const request = require('request'); const Price = require('../models/price'); module.exports = interval => { update(); setInterval(update, interval); }; function update() { request('https://api.csgofast.com/price/all', (err, response, body) => { if (err) { console.log(err); } else { let json = {}; try { json = JSON.parse(body); } catch (e) { console.log(e); } _.forOwn(json, (price, market_hash_name) => { Price.update( { market_hash_name }, { $set: { price } }, { upsert: true }, err => { if (err) { console.log(err); } } ); }); } }); } And here's the HTML: <!-- DEPOSIT MENU --> <div class="deposit"> <h1>Deposit Items</h1> <ul class="deposit"> {{#each items}} <li class="deposit item" data-assetid="{{this.assetid}}">{{market_hash_name}} (${{this.price}}) {{/each}} </ul> </div> How do I get the images to show up, for example over the item name?
  12. Do someone know parameters for steam showcases from this pull request: https://github.com/DoctorMcKay/node-steamcommunity/pull/143 ?
  13. I am trying to get my CS:GO inventory with getInventoryContents(appid, contextid, tradableOnly, callback). My full code is: "use strict"; 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' }); var steamLogOn = { accountName: 'FancyUsername', password: 'VerySecurePassword', twoFactorCode: SteamTotp.generateAuthCode('Shared_Secret') }; client.logOn(steamLogOn); client.on('loggedOn', () => { console.log('[Steam] Logged in'); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); }); manager.getInventoryContents(730, 2, true, (err, inventory) => { if (err) { throw err; } else { console.log(inventory); } }); The error i get is: /var/www/bot/node_modules/steamcommunity/components/users.js:374 "uri": "https://steamcommunity.com/inventory/" + userID.getSteamID64() + "/" + appID + "/" + contextID, ^ TypeError: Cannot read property 'getSteamID64' of null at get (/var/www/bot/node_modules/steamcommunity/components/users.js:374:60) at SteamCommunity.getUserInventoryContents (/var/www/bot/node_modules/steamcommunity/components/users.js:370:2) at TradeOfferManager.getUserInventoryContents (/var/www/bot/node_modules/steam-tradeoffer-manager/lib/index.js:293:18) at TradeOfferManager.getInventoryContents (/var/www/bot/node_modules/steam-tradeoffer-manager/lib/index.js:281:7) at Object.<anonymous> (/var/www/bot/test.js:34:9) at Module._compile (module.js:660:30) at Object.Module._extensions..js (module.js:671:10) at Module.load (module.js:573:32) at tryModuleLoad (module.js:513:12) at Function.Module._load (module.js:505:3)
  14. Is there an event that triggers when the user plays a game? & when he stops?
  15. Hello guys! I want to receive percentage of wear on a skin. http://api.steampowered.com/IEconItems_730/GetPlayerItems/v0001/?key=KEYHERE&SteamID=IDHERE This API doesn't work. If someone knows something I will be very grateful. Thank you!
  16. Imagine bot go offline after tradeoffer sent. User will accept offer and presumes that he will get some codes into chat. But whoops bot went offline right before user accepted offer. Bot starts 1 minute later and he dont know about any accepted offer when he was offline. How to solve this?
  17. Hey there! I've just done a queue that sends trade offers in my bot. Since I have an option to set a rate limiter for this queue (N jobs processed in X seconds), I ask if anybody knows what are the current steam's limit on sending trades? Thanks regardless and sorry if I posted in a wrong forum.
  18. How many games can I play at the same time ? What happens if you specify several times the same game ?
  19. I want have in my bot command for show trade url and for change trade url, trying to do that like that but... after this not working, I was thinking how to do that. Any help? if (command == '!tradelink') { community.on('getTradeURL', function(err, url) { if (err) { console.log("(" + dateTime() + " |" + dateTime(true) + ")" + " Trade link err: " + err); } else { console.log("(" + dateTime() + " |" + dateTime(true) + ")" + " Trade link: " + url); client.chatMessage(config.adminID, "Trade link: " + url); } }); } To be sure: [email protected]
  20. 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
  21. const SteamUser = require('steam-user'), SteamTotp = require('steam-totp'), SteamCommunity = require('steamcommunity'), steamConfig = require('../steam-bot/config.json'), client = new SteamUser(), community = new SteamCommunity(), steamUserLogin = { accountName: steamConfig.username, password: steamConfig.password, twoFactorCode: SteamTotp.generateAuthCode(steamConfig.sharedSecret) }, steamGroupID = '103582791459977984'; var announcementHeadline = 'testheadline', announcementContent = 'testcontent'; client.logOn(steamUserLogin); client.on('loggedOn', function(){ console.log('Logged into steam'); }); client.on('websession', function(sessionid, cookies){ community.setCookies(cookies); }); community.postGroupAnnouncement(steamGroupID, announcementHeadline, announcementContent, function(err){if (err) {console.log(err.message)} client.logOff()}); It logs into steam, waits a few seconds and then logs off. No error is returned. I checked the permissions, and I can post announcements manually. It seems to run the function as changing the group ID returns an error of invalid. Can you point me in the direction of what I'm doing wrong? Thank you for any and all help
  22. Using a bot to idle my account while I'm not playing. Whenever the bot logs into my account it makes all my friends appear offline in the steam client (until you relaunch steam client, they update their status or you exit the bot). Is there any way to avoid this?
  23. 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 ?
×
×
  • Create New...