-
Posts
46 -
Joined
-
Last visited
Posts posted by SunriseM
-
-
How can I confirm it, I started the confirmation checker when the client gets a web session. I am at school right now so I will post the code of how I thought it was confirmed when I get home.
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
-
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
-
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.
-
Read this. Remember you need to have enabled time polling
-
No i don't have experience in it and Yeah you are probably going to get Error 429 if you set it too low.
-
-
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()
-
-
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
-
I don't remember of a method that does it, but you can use steam api getBadges
-
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
-
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?
-
For some reason it is not good either:
items.foreEach(function(item){
TypeError: items.forEach is not a function.
Show all your code please
-
First you need to load your inventory. Use method getInventoryContents(appid, contextid, tradableOnly, callback) first and then you can use the inventory callback.
-
yes,i tryed and dont work
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); });
-
var SteamUser = require('steam-user');var SteamTotp = require('steam-totp');var config = require('./config.json');// SaveStringsvar Username = config.username;var Password = config.password;// SaveStringsvar client = new SteamUser();//Small fix: Dual-Session Chat, pervents from see Friends offline;function SteamPersonaRestart(){client.setPersona(0);client.setPersona(1);}client.logOn({"accountName": Username,"password": Password,"machineName": Username,"twoFactorCode": SteamTotp.generateAuthCode(config.Phone_secret)});client.on('loggedOn', function (details) {client.setPersona(1);console.log("LOGGED");});var sid= "76561198041931474";client.getChatHistory(sid)client.on('chatHistory', function(steamid, success, messages){console.log(messages)console.log(success);})
nothing appers
Did you try writing the client.on('chatHistory',..) part before client.getChatHistory?
-
no output,
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.
-
Are you logged in the bot steam account before the function is called?
Accepting friends request if member of group.
in node-steam-user
Posted
Where did you get community.groups from? i haven't heard of it.
You should use community.getGroupMembers() method.