Jump to content
McKay Development

venfiw

Member
  • Posts

    25
  • Joined

  • Last visited

Everything posted by venfiw

  1. Exception in PromiseRejectCallback: C:\buffhelptest\buffhelptest\node_modules\steam-user\components\friends.js:1137 return resolve(user); RangeError: Maximum call stack size exceeded today i update the steam-user to 4.19.10 and it show this err, Although it seems not very important for me when i use old version it wouldn't happen ["steam-user": "^3.15.0"] and here is some code, this errmessage always show after use websession client.on('webSession', function(sessionid, cookies) { if (Config.autoconfirm!=="") { var confirmtime=Config.autoconfirm*1000; community.startConfirmationChecker(confirmtime,identity); console.log("\n### 尝试登陆Steam社区\n## 已开启批量确认:",Config.autoconfirm,"秒确认一次,注意不要手动去Steam接受非buff来源的报价,不然你会失去饰品"); }else { console.log("\n### 尝试登陆Steam社区\n## 已关闭批量确认"); } manager.setCookies(cookies); community.setCookies(cookies); h20vf = "done"; }); and i login another steamaccount, it wouldn't happen maybe my main account friend is too many? my main account have 1900 friends
  2. and i make a request , sometime it will visited other site get untrade offer, if find it then restart the bot
  3. community.acceptConfirmationForObject(identity, creator.id, function(err){ }); i find it at here, if confirm trade we use tradeid, if confirm market ,we use creatorid
  4. i will sell some skins on steammarket is there any except use community.startConfirmationChecker(confirmtime,identity)
  5. csgotrade is so many on china so i know it , sometimes steamcommunity will very busy value will cancel some trade
  6. some times con't get offer, SteamUser can login, but client.on('webSession') can't login community client.on('webSession', function(sessionid, cookies) { manager.setCookies(cookies); community.setCookies(cookies); }); i see the nginx logs it shows will 301 to https://steamloopback.host/index.html may be toomany request in times?
  7. is there any way when some one chat to me i can know How many days have we been friends
  8. client.on('friendMessage', function(steamID, message){ var msg_him=Object.keys(Config.reply); var msg_my=Object.values(Config.reply); var replycount=msg_my.length; for (var i = replycount - 1; i >= 0; i--) { if (message==msg_him[i]) { //if (message.indexOf(msg_him[i]) >= 0) client.chatMessage(steamID,msg_my[i]); } } }) Config.js "reply":{ "谁是大帅比":"当然是venfiw", "代购":"当前代购折扣为:8折,需要7天以上Steam好友,请用QQ联系我, 554515860", "hello":"hi" } when some send hello in chat, ur bot will send hi or u can use : if (message.indexOf(msg_him) >= 0) when some send hello*** in chat, ur bot will send hi
  9. is this function living? community.declineConfirmationForObject(Config.identity, message.replace("@confirm ",""), function(err){ if(err){ console.log(' Cant confirmed the offer. Please try again later'); client.chatMessage(Config.admin, "HI admin: Cant confirmed the offer"); } else { console.log(' Succesfully confirmed the offer.'); client.chatMessage(Config.admin, "HI admin: Offer was successful"); } });
  10. now,i use this ways, first accept all offer, then i send a message to my bot ,to confirm i want offer if (message.indexOf("@confirm") >=0) { if (steamID == Config.admin) { community.acceptConfirmationForObject(Config.identity, message.replace("@confirm ",""), function(err){ if(err){ console.log(' Cant confirmed the offer. Please try again later'); client.chatMessage(Config.admin, "HI admin: Cant confirmed the offer"); } else { console.log(' Succesfully confirmed the offer.'); client.chatMessage(Config.admin, "HI admin: Offer was successful"); } }); } } now how can i send a message to make my bot accept offer or decline offer? may be i can accept all offer and then i send confirm message to finish i want trade and every 2hours decline all offer to decline i needn't offer please help
  11. so can i use those cookies accept offer as gift replace identity_secret ? sessionidsteamLoginsteamLoginSecure*steamMachineAuth<SteamID>*
  12. let client = new SteamUser(); community = new SteamCommunity({ "request": Request.defaults({"rejectUnauthorized": false}) }); manager = new TradeOfferManager({ steam: client, community: community, language:'en' }); if (config.autologin == 1) { client.logOn({ "accountName":config.username, "password":config.password, "twoFactorCode": SteamTotp.generateAuthCode(config.sharedse) }) } else { var rl = Readline.createInterface({ input: process.stdin, output: process.stdout }); rl.question("username: ", function(name) { var username = name; rl.question("password: ", function(pass) { var password = pass; client.logOn({ "accountName":config.username, "password":config.password, "twoFactorCode": SteamTotp.generateAuthCode(config.sharedse) }) }); }); } client.setOption('promptSteamGuardCode',true);//true代表手动输入令牌,false代表使用2FA文件 client.on('loggedOn',() => { console.log('\n### Logged into Steam\n## steamid64:'+client.steamID+'\n## play game:'+config.playgame+'\n## trademode:'+config.trade+'\n## invitmode:'+config.invite); client.setPersona(SteamUser.Steam.EPersonaState.Online); client.gamesPlayed(config.playgame); botid64 = client.steamID; botid3 = client.steamID.getSteam3RenderedID() }); client.on('webSession', function(sessionid, cookies) { manager.setCookies(cookies); community.setCookies(cookies); }); is there any possible i can accept the tradeoffer with out 2FA sharedse? in some reason, i lose my sharedse, i gave it for a tradesite, and it can help me to send skins to other peole, and i can get the code when i want to login. and i make this bot can accept the offer when he got a tradeoffer,it works Just after logging in, but After a while 30mins or 1hours he can't accept the offer any more, and it just show "Unable to accept offer: Not Logged In"
  13. if u want ur scripts stop playing game, u can use this code client.gamesPlayed([]) and then u can let another scripts playing the game. u can let two or more scripts login one account at the same time,buy only one scripts can playing game
  14. yep, and nodejs can't run is what should i do.Do you have any advice?
  15. help i can accept the offer in web but can't accept it with node-steamcommunity in some reason our country block the steamcommunity.com when we visit the site our targetlink will be reset,so if we want visit steamcommunity.com we must use a vpn and one day some one find the way to visit it without vpn it's called Reverse Proxy, i thought.(sry for my bad english) The question is now i can visit steamcommunity.com with web and steamclient, but i can't visit is by node-steamcommunity the first offer worked becacuse i use a another ipaddress in hosts, and then i change the hosts to my Reverse Proxy server, and then show Unable to accept offer: self signed certificate what should i do ? can you give me some suggestions? I am very grateful to you for reading these. thanks
  16. Hi Sir I thought find a very strange problem. I used two accounts run a same code, it works, code is here: if (message == "!inventory") { client.chatMessage(steamID,"I got your commands, please wait"); community.getUserInventoryContents("[U:1:136393544]", 730, 2, true, (ERR, INV, CURR, TOL) => { console.log(INV) var itemname = ""; for (var i = 0; i < INV.length; i++) { itemname += "<" + i + ">" + INV[i].market_hash_name + "\n"; } client.chatMessage(steamID, "Here is my Inventory info: \nALL items : " + TOL + " Tradable : " + INV.length); client.chatMessage(steamID, "TradableList : \n" + itemname); }) } i user a other code ,i thought this code can count my csgo keys by load twice or more times inventory and it works, when i login bot1 check bot2 inventory, function reload(steamID){ client.chatMessage(steamID,"I got your commands, please wait"); for (var i = 0; i < CONFIG.CHECKLIST.length; i++) { searchitem(steamID,CONFIG.STEAMUID, CONFIG.CHECKLIST[i]); } } function searchitem(steamID, steamuid, scmname){ community.getUserInventoryContents(steamuid, 730, 2, false, (ERR, INV, CURR, TOL) => { if (ERR) { console.log("err") } else { console.log("Search " + scmname); var amount = 0; for (var i = 0; i < INV.length; i++) { if (INV[i].market_hash_name == scmname){ console.log(" ## Inventory Number: " + i); amount++; } } client.chatMessage(steamID,scmname + " : " + amount); } }); } module.exports ={ STEAMUID: "[U:1:840063816]", CHECKLIST: [ "Chroma Case Key",//幻彩123光谱12伽马12 "Chroma 2 Case Key", "Chroma 3 Case Key", "Spectrum Case Key", "Spectrum 2 Case Key", "Gamma Case Key", "Gamma 2 Case Key", "Horizon Case Key",//地平命悬手套弯曲暗影 "Clutch Case Key", "Glove Case Key", "Falchion Case Key", "Shadow Case Key", "eSports Key",//电竞左轮原生猎人大行动 "Revolver Case Key", "CS:GO Case Key", "Huntsman Case Key", "Winter Offensive Case Key", "Operation Breakout Case Key", "Operation Wildfire Case Key", "Operation Vanguard Case Key", "Operation Phoenix Case Key", ] } then Strange things happened, when i login bot2 check bot2 inventory, i get error,When the second execution of the command getUserInventoryContents, The same result happens on another account. bot1 can load bot2 bot3 and other account's inventory twice or more, Except himself bot2 can load bot1 bot3 and other account's inventory twice or more, Except himself SO i thought maybe wen can't load myown inventory toomany times. then i user once load function checkitem(steamID){ community.getUserInventoryContents(CONFIG.STEAMUID, 730, 2, false, (ERR, INV, CURR, TOL) => { if (ERR) { console.log("err") } else { var amount = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); for (var i = 0; i < INV.length; i++) { for (var j = 0; j < CONFIG.CHECKLIST.length; j++) { if (INV[i].market_hash_name == CONFIG.CHECKLIST[j]){ console.log(" ## Inventory Number: " + i); amount[j]++; } } } var message ="" for (var i = 0; i < CONFIG.CHECKLIST.length; i++) { message = message + CONFIG.CHECKLIST[i] + " : " + amount[i] + "\n" } client.chatMessage(steamID,message) } }); } finally i make it
  17. client.on('wallet', function(hasWallet, currency, balance) { if (balance >= 0) { let playThis = CONFIG.PLAYGAMES; playThis = playThis.toString().replace(/replacebalance/,"游戏代购 ¥:" + balance); console.log("### This bot have Wallet Balance: " + balance) wallet = balance; } }); client.on("friendMessage", function(steamID, message) { if (message == "!check") { client.chatMessage(steamID, "我账号上面还有:¥" + wallet); }; }); hello every one i user this code can check my bot wallet, is there any possible i can get how many csgokeys my robot has?
  18. hello every one, i make promptSteamGuardCode is true so i can remove the SHAREDSECRET from my servers and i input the Guardcode every time now i want make the same thing to my accountName and password, so i can remove my USERNAME and PASSWORD from the servers, i thought it is safe. haker can't get my account after he get my servers. so , what should i do now , i search from the google and i get a way to use readline but it is so hard to me, may be i can get a easy way from here.
  19. i saw one guy he use this to make Crafting scrap
  20. thank u my friend, it worked after i replace community.checkConfirmations();
  21. manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteamID64()); if (offer.partner.getSteamID64() === config.ownerID) { offer.accept(function(err) { if (err) { console.log("Unable to accept offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after accepting the offer client.chatMessage(offer.partner.getSteamID64(), "Thanks for trade with me"); console.log("Offer accepted"); } }) } else { offer.decline(function(err) { if (err) { console.log("Unable to decline offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after declineing the offer client.chatMessage(offer.partner.getSteamID64(), "Sorry, I'm not ready to trade with you yet"); console.log("Offer decline"); } }) } }); when i gave my bot one skin,it's can accept. when i take this skin back it's can't work. it just don't confirmations the offer,but told me Thanks for trade with me,and i can see Offer accepted on console. same code can work before yestarday,but it can't work now
×
×
  • Create New...