Jump to content
McKay Development

drdr

Member
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

175 profile views

drdr's Achievements

  1. Good afternoon again, Doctor. Can you please tell me if steam can give an error when offer.send but still send the trade? (because steam is shit) this.sentOffer = this.manager.createOffer( new TradeOfferManager.SteamID(this.withdraw.steamUser.steamId), this.withdraw.tradeToken.token, ); this.sentOffer.addMyItem({ assetid: this.withdraw.botItem.assetId, appid: this.withdraw.botItem.item.gameId, contextid: 2, }); return new Promise((resolve, reject) => { this.sentOffer.send(async (tradeError, status) => { if (tradeError) { if (this.sentOffer) { this.sentOffer.cancel(); } return reject(tradeError); } if (status === "pending") { telegramBotCreateOffer(this.bot, JSON.stringify(this.sentOffer)); this.community.acceptConfirmationForObject( this.bot.identitySecret, this.sentOffer.id, async err => { if (err) { this.sentOffer.cancel(); await error(err); } }, ); return resolve(); } // here i have to cancel the trade? return reject(); }); });
  2. Good afternoon Dr McKay. I'm trying to get data after the created trade object, and I get an error My Code: const SteamTotp = require("steam-totp"); const Community = require("steamcommunity"); const TradeOfferManager = require("steam-tradeoffer-manager"); const community = new Community(); const manager = new TradeOfferManager({ community, }); const accountName = "anonymos for forum"; const accountPassword = "anonymos for forum"; const accountSharedSecret = "anonymos for forum"; const accountIdentitySecret = "anonymos for forum"; const createSession = async () => { return new Promise((resolve, reject) => { community.login( { accountName, password: accountPassword, twoFactorCode: SteamTotp.generateAuthCode(accountSharedSecret), }, async (err, sessionId, cookies, steamGuard, oAuthToken) => { if (err) { console.log(err); return resolve(null); } community.setCookies(cookies); console.log("Auth!"); return resolve(true); }, ); }); }; const checkSession = async () => { return new Promise(resolve => { community.loggedIn(async (err, loggedIn, familyView) => { if (err) { console.log("CheckSession", err); } console.log({ loggedIn, familyView }); return resolve(); }); }); }; const sendTrade = async () => { await createSession(); await checkSession(); let offer = null; const create = async () => { return new Promise(resolve => { offer = manager.createOffer(new TradeOfferManager.SteamID("anonymos for forum")); offer.setToken("anonymos for forum"); offer.addMyItem({ assetid: "anonymos for forum", appid: "252490", contextid: 2, }); console.log("Trade Created"); return resolve(); }); }; await create(); await new Promise(resolve => setTimeout(() => resolve(), 5000)); offer.getUserDetails((err, me, them) => { if (err) { console.log(err); } else { console.log({ me, them }); } }); }; sendTrade(); Error console: Auth! { loggedIn: true, familyView: false } Trade Created /app/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:811 var myAvatar = body.match(new RegExp('<img src="([^"]+)"( alt="[^"]*")? data-miniprofile="' + this.manager.steamID.accountid + '">')); ^ TypeError: Cannot read property 'accountid' of null at SteamCommunity.<anonymous> (/app/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:811:118) at Request._callback (/app/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/app/node_modules/request/request.js:185:22) at Request.emit (events.js:314:20) at Request.<anonymous> (/app/node_modules/request/request.js:1154:10) at Request.emit (events.js:314:20) at Gunzip.<anonymous> (/app/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:420:28) at Gunzip.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1241:12) [nodemon] app crashed - waiting for file changes before starting...
  3. I was just testing the bot by passing items to and from twink. Nothing else. The account lasted two months. CreateOffer Trade poll 8 second. GetExchangeDetails getUserInventoryContents
  4. Good afternoon Mr McKay. For two months I worked on the bot. Transferred items from one account to another and back. One flew to the ban - the second lives. The second account has long been registered and used. The first one was created for a bot. I can't understand how they determined that I was "violating the terms of use of steam". Throwing items to the twink and back, I do not violate any terms of use. I did not send exchanges to other people. Why is this fucking Steam banning everything? On other accounts, for an unknown reason, they make chargebacks for me and then ask me to send them identification documents. Can I somehow protect myself from this without talking to support? (because she is not competent) This is crap and chaos.
  5. Taking this opportunity, I would like to ask, at the moment there are many elements stored in pooldata, and it is not advisable to store all of them in the database. Since most of them may be outdated. How to deal with it? As far as I understand, there is no date pool cleanup in the package
  6. Can you please explain why this is done? If you send directly from the website, it does not require any deposit. I would like to know what this is related to.
  7. I will clarify. When sending from the Steam site itself. Not via package
  8. Hello guys, visited such a question. Do I need to deposit $5 to my account to send a trade? Because from the web version he sends without a deposit, and through the bot he writes access is denied. On bots where there is a $5 deposit, everything is ok
×
×
  • Create New...