Jump to content
McKay Development

SunriseM

Member
  • Posts

    46
  • Joined

  • Last visited

Everything posted by SunriseM

  1. Where did you get community.groups from? i haven't heard of it. You should use community.getGroupMembers() method. community.getGroupMembers("groupid", function(err, members) { //Check if steamid is included in members array });
  2. If you started the confirmation correctly, offer should be accepted. Also is recommended that you use acceptConfirmationObject instead of starConfirmationChecker. You can read more about it in the steam-community wiki
  3. Please read the whole documentations. https://github.com/DoctorMcKay/node-steam-totp#gettimeoffsetcallback . You will have to add the callback time, to getAuthCode timeOffset property.
  4. Check if your time is offset from steam.
  5. Change it to if (offer.partner.getSteamID64() === Config.admin || offer.itemsToGive.length === 0) { logger.info("User "+ offer.partner.getSteam3RenderedID() +" offered a valid trade. Trying to accept offer."); offer.accept(function (err, status) { if (err) { logger.error("Unable to accept offer "+ offer.id +": " + err.message); } else { logger.info("Offer Status:", status); } }); Check what status outputs. Also remember that if its not a "donation offer" you have to confirm the trade after accepting it
  6. Hello. If you showed us what you have tried it would be better, so we can explain you what's wrong with your code. To help you a little: For this i would make a loop through the inventory, and inside call a function that sends the offer. To get each item you have to use inventory[number]. If you still can't manage to get it to work, comment here what you tried. Also sending so many offers (depending of your inventory size) in a short of time is not a good idea.
  7. No i don't have experience in it and Yeah you are probably going to get Error 429 if you set it too low.
  8. Try with client.gamesPlayed(["Custom message", 440]);
  9. You can change the Poll Interval in the Manager constructor. pollInterval - Optional. The time, in milliseconds, between polls. If -1, timed polling is disabled. Minimum 1000, default 30000 (30 seconds). you can also add Polling data, but i think it only affects trade loads after you have received multiples offers
  10. I don't see nothing wrong. Have you tried using the Group Id directly? Without this part: var sid = new SteamID("103582791434188513");
  11. Can you add your login code? That deprecation warning is not normal, Also 3306 port its often used by MySQL servers, so if you are trying to connect to database, its probably that your mysql server is not running or there's a problem in your connection
  12. Client auto relogs when is disconnected unless you manually disabled it. If you want to renew the session use webLogOn()
  13. Documentation says: Gets your own Steam Level, and the level you have on a badge for a particular game. So i guess that you cant
  14. I don't remember of a method that does it, but you can use steam api getBadges
  15. I have never got that error so i'm sure of what problem it is. But usually when i have problems with that method is that i'm not logged in. So make sure that you are connected
  16. Oh so you were using this example code. In this part: var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=12345678&token=xxxxxxxx"); you have to put a real trade link. Also what error are you getting in the console?
  17. First you need to load your inventory. Use method getInventoryContents(appid, contextid, tradableOnly, callback) first and then you can use the inventory callback. Documentation
  18. Well i don't see nothing wrong on it. There's other option. Try with: client.getChatHistory(sid, function(success, message){ console.log(success); console.log(message); });
  19. Did you try writing the client.on('chatHistory',..) part before client.getChatHistory?
  20. add console.log(success) and see what it outputs. Also put how your code looks now here. and try writing the event listener before the method. Maybe the event is being emitted before the listener starts working
  21. Are you using the method getChatHistory? Also the event name is chatHistory. First you have to use the method client.getChatHistory(aaaaaaaaa) Then you can listen to the event client.on('chatHistory', function(steamid, success, messages){ console.log(messages) }) Please read all the Documentation.
  22. Are you logged in the bot steam account before the function is called?
×
×
  • Create New...