Golden
-
Posts
4 -
Joined
-
Last visited
Posts posted by Golden
-
-
So far I have this:
It logs in successfully but the trade offer part is not doing anything. I would appreciate some insight on this. Thanksconst 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'
});client.on('webSession', (sessionid, cookies) => {
manager.setCookies(cookies);community.setCookies(cookies);
community.startConfirmationChecker(10000, 'identity secret');
});manager.on('newOffer', offer => {
if (offer.partner.getSteamID64() === 'trusted_account_id') {
offer.accept((err, status) => {
if (err) {
console.log(err);
} else {
console.log(`Accepted offer. Status: ${status}.`);
}
});
} else {
offer.decline(err => {
if (err) {
console.log(err);
} else {
console.log('Canceled offer from a rando.');
}
});
}
});const logOnOptions = {
accountName: 'username',
password: 'password',
twoFactorCode: SteamTotp.generateAuthCode('shared secret')
};client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Logged into Steam');client.setPersona(SteamUser.EPersonaState.Online);
client.gamesPlayed(730);
});manager.on('newOffer', offer => {
if (offer.itemsToGive.length === 0) {
offer.accept((err, status) => {
if (err) {
console.log(err);
} else {
console.log(`Donation accepted. Status: ${status}.`);
}
});
} else {
offer.decline(err => {
if (err) {
console.log(err);
} else {
console.log('Trade declined (wanted our items).');
}
});
}
}); -
17 hours ago, Dr. McKay said:
No, automating the market is a violation of the Steam TOS and isn't a supported use case.
I see, thank you and have a nice day
-
Hello, I have been trying to make a market bot for a while now and I have trade offers automated already. I was wondering if I could use any of your tools to automate market actions like buying and selling skins as I cant find any information on it. Thanks and have a nice day
Question about an error
in node-steam-tradeoffer-manager
Posted
Hello I hope you are all having a good day,
I received this following error after my code tried to acceptConfirmationForObject:
Error: Could not find confirmation for object 6777024678
Im not sure what this means and I would appreciate it if someone could clarify.
Thanks