-
Posts
46 -
Joined
-
Last visited
Everything posted by SunriseM
-
Question Accepting friends request if member of group.
SunriseM replied to Seeringfate's topic in node-steam-user
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 }); -
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.
-
Check if your time is offset from steam.
-
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
-
Question Sending the items one by one, and loops
SunriseM replied to IdiotScriptieKid's topic in node-steam-tradeoffer-manager
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. -
Setting expire time for individual offers?
SunriseM replied to Techload's topic in node-steam-tradeoffer-manager
Read this. Remember you need to have enabled time polling -
Question [Question] Fastest way of accepting a tradeoffer
SunriseM replied to mar71n's topic in node-steam-tradeoffer-manager
No i don't have experience in it and Yeah you are probably going to get Error 429 if you set it too low. -
Try with client.gamesPlayed(["Custom message", 440]);
-
Question [Question] Fastest way of accepting a tradeoffer
SunriseM replied to mar71n's topic in node-steam-tradeoffer-manager
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 -
I don't see nothing wrong. Have you tried using the Group Id directly? Without this part: var sid = new SteamID("103582791434188513");
-
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
-
Client auto relogs when is disconnected unless you manually disabled it. If you want to renew the session use webLogOn()
-
Question Send offers for specified amount of items
SunriseM replied to jafix's topic in node-steam-tradeoffer-manager
https://www.w3schools.com/jsref/jsref_splice.asp -
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
- 4 replies
-
- node.js
- node-steam-user
-
(and 3 more)
Tagged with:
-
I don't remember of a method that does it, but you can use steam api getBadges
- 4 replies
-
- node.js
- node-steam-user
-
(and 3 more)
Tagged with:
-
Error: Failure when use getInventoryContents ?
SunriseM replied to mrxbell's topic in node-steam-tradeoffer-manager
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 -
[Help] I want to send only 1 item in trade !
SunriseM replied to Kamcio133's topic in node-steam-tradeoffer-manager
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? -
[Help] I want to send only 1 item in trade !
SunriseM replied to Kamcio133's topic in node-steam-tradeoffer-manager
Show all your code please -
[Help] I want to send only 1 item in trade !
SunriseM replied to Kamcio133's topic in node-steam-tradeoffer-manager
First you need to load your inventory. Use method getInventoryContents(appid, contextid, tradableOnly, callback) first and then you can use the inventory callback. Documentation -
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); });
-
Did you try writing the client.on('chatHistory',..) part before client.getChatHistory?
-
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
-
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.
-
Possible to add getInventoryContents into function?
SunriseM replied to TomYoki's topic in node-steamcommunity
Are you logged in the bot steam account before the function is called?