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, is it possible to get summary in trade how much backgrounds and emoticons are worth in amount of gems? something like this: if you receiving trade offer with steam backgrounds & emotes & trading cards to see how much these items are worth in gems?
  2. Sorry for asking for such a trivial question, but this would be my first bot for steam. But I was wondering what is the required code that I would need to start up the bot, and have the bot running? Also am wondering how would I go about calling the constructor for the methods. Again sorry for asking such a trivial question, I feel stupid asking it.
  3. Hi all, So this is my code : community.on('sessionExpired', (err) =>{ console.log("Session Expired !! Logging In Again...") if (a = 1) { a = 0 login(); } }); community.on('disconnected', (err) =>{ console.log("Disconnected !! Logging In Again...") if (a = 1) { a = 0 login(); } }); So what is happening is that the sessionExpired is being called but when the bot is trying to log in, it crashes with an error stating that we are already logged in and we cannot log in again, also sometimes the bot crashes with an error saying the session was replaced or something like that, sorry I don't exactly remember, will post log when it happens again. Any help would be greatly appreciated PS: I've added that var a to make sure that the login function is called only once, I change it back to 1 once we get the webapi key from steam.
  4. I'm trying to get user details on a message. The problem is that if the user changes his profile (name,location,etc) the bot will have to reset in order to update those values.. [Here's my code](https://pastebin.com/7pq0rJqC): I get it that the bot gets the caches version of the steam profile page, but is there a way it can update it every couple of minutes? The only alternative I have my mind is logging a different bot that'll update those details & then send them to the main bot, but that's way too much to do each time I get a new message..
  5. Following Code which is I used. var client = new SteamUser();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.createOffer(trade_url);offer.data('cancelTime', null); //I written my code to remove cancellation time for this trade but do not work this codeoffer.addMyItems(inv_to_trade); offer.setMessage("My Message here");offer.send(function (err, status) { if (err) { logger.error("trade send Error",err); return true; }}); Question : I written offer.data('cancelTime', null); but this do not work so How I cancel this offer ?
  6. Hi, I'm trying to get all of the Received offers that are active. I read here about the function https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#getoffersfilterhistoricalcutoff-callback but I don't think I'm using the time object right. Here is my code: https://pastebin.com/SZcx0dwn What's the right way to do that?
  7. Hi, so I'm making a bot that send the user a trade offer with 350 gems, but the problem is that it's my first time using JS, so I find it kinda difficult to do it... I found this online but I don't understand it at all....: manager.getUserInventoryContents(steamID, 753, 6, true, (err, inv) => { if (err) { throw err; } let gems = inv.filter(item => item.market_hash_name == "Gems"); let item = gems[0]; item.amount = 350; offer.addMyItem(item); offer.send(function(err, status) { if (err) { console.log(err); return; } //Some code }); }); But the problem is that I need: 1. Check if the user has at least 350 Gems or more in their inventory 2. Send the trade offer with the 350 gems So I basically have no idea how to do it... Anyone can help me out? Thanks.
  8. Hi, so I am making a bot and the user has a "!buy" command that also has a parameter. How do I find out what number the user enters after the command when the user enters it like this "!buy 3"? if (msg.toUpperCase() == '!BUY' && '!BUY' == msg.toUpperCase().substring(0,4)){ if(!isNaN(msg.charAt(5)) && parseInt(msg.charAt(5)) > 0){ var string_start=msg.indexOf("UY"); var nrOfSets= ""; string_start+=3; for (var i = string_start; i < msg.length; i++) { nrOfSets+= msg.charAt(i); } var sets = parseInt(nrOfSets); I tried that but it doesn't work, it just skips to the last "else" which tells the user that the command is not recognized... Thanks. ---- EDIT FIXED!
  9. Hello, dear community, I am currently trying to manage multiple bots. I have made a bot.js where I am declaring how the object of the bot has to be. In the app.js I am making, for every steam account I have, a bot object and starting each bot synchronously after the bot before has been successfully logged in before. Now my problem: Let's say I have 10 steam accounts, every account owns Counter Strike and has a minimum spent of $5 in market. If I now start all bot instances, all steam accounts are shown as 'Currently In-Game Counter-Strike: Global Offensive' as far as good. But if I now send a trade offer to one of these bots, whatever bot I send the trade offer to it never gets accepted plus in the log files it says always: "Bot #10: Accepted offer. Status: pending"(Strange because the offer wasn't accepted!). So whatever bot I send the offer to, it's always bot #10 (the last bot) that tries to accept the offer. bot.js var SteamUser = require('steam-user'); var SteamTotp = require('steam-totp'); var SteamCommunity = require('steamcommunity'); var TradeOfferManager = require('steam-tradeoffer-manager'); var client; var community; var manager; var logOnOptions; function Bot(options, loggedIn){ //loggedIn -> Callback function, fires when client logs in successfully. client = new SteamUser(); community = new SteamCommunity(); manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); logOnOptions = { accountName : options.accountName, password : options.password, twoFactorCode : SteamTotp.generateAuthCode(options.shared_secret) }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('Bot #'+options.id+' is running...'); client.setPersona(SteamUser.Steam.EPersonaState.Online); client.gamesPlayed(730); loggedIn(); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); community.startConfirmationChecker(10000, options.identity_secret); }); manager.on('newOffer', offer => { if (offer.partner.getSteamID64() === '76561198100124418') { offer.accept((err, status) => { if (err) { console.log('Bot #'+options.id+': Error while accepting. '+err); } else { console.log('Bot #'+options.id+': Accepted offer. Status: '+status); } }); } else { offer.decline(err => { if (err) { console.log(err); } else { console.log('Bot #'+options.id+': Canceled offer: No trusted SteamID.'); } }); } }); } module.exports = Bot; app.js var Bot = require('./bot.js'); var config = require('./config.json'); var bots = []; var x = 0; var loopArray = function(arr) { startBot(arr[x],function(){ x++; if(x < arr.length) { loopArray(arr); } }); } function startBot(options,loggedIn) { console.log("Starting Bot "+options.id); var bot = new Bot(options, ()=>{ bots.push(bot); loggedIn(); }); } loopArray(config); I hope someone can help me ^^ Thank you in advance for any answers! -degs
  10. My Json file looks like this: {"TotalItemsTraded": {"TotalKeys": 0} } Json is called: 'TotalSold.json' How can I update it's value? I'm trying to add an integer to 'TotalKeys' (Another function is calculating everything and im just trying to update the json file value)
  11. Using node-steam-user + node-steamcommunity + node-steam-tradeoffer-manager. At some point this happening: Calling getUserDetails is returning Not logged in. steamCommuniti'es loggedIn returns true, bot is still polling offers and gets new offers, but even after webLogOn cant make getUserDetails reqeust. What can be a problem?
  12. Hello Doctor Mckay, I wanted to know if its possible for you to update / recreate your older TF2 Server Statistics tool. https://www.doctormckay.com/utilities/valveservers.php It would really be great if this tool would work for CS:GO servers. If your no longer supporting this tool, is it possible to get the source code for a small donation or free? Thanks.
  13. 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 ?
  14. 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!
  15. 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!
  16. 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!
  17. 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.
  18. Hello. Can i somehow scratch a sticker from an item in node-globaloffensive or maybe can u add this method if possible?
  19. 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 }
  20. 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?
  21. 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.
  22. How many games can I play at the same time ? What happens if you specify several times the same game ?
  23. 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]
×
×
  • Create New...