Jump to content
McKay Development

venfiw

Member
  • Posts

    27
  • Joined

  • Last visited

Recent Profile Visitors

320 profile views
  1. var itemlist = require('./itemlist/itemlist.json'); client.on('friendMessage#'+Config.admin, function(steamID, message) { if (message.toUpperCase().indexOf("@changejson") >= 0) { delete require.cache[require.resolve("./itemlist/itemlist.json")] itemlist = require('./itemlist/itemlist.json').data; } }); here is code when bot get your message, it will reset itemlist to new
  2. when i login steam i can use this get cookie client.on('webSession', function(sessionid, cookies) { stsessionid = sessionid; stcookies = cookies; console.log("sessionid:",sessionid,"\ncookies:",cookies); }); but just show sessionid, steamLogin, steamLoginSecure is there any i can get shoppingCartGID? or what should i do if i want buy game for otherspeople
  3. 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
  4. and i make a request , sometime it will visited other site get untrade offer, if find it then restart the bot
  5. community.acceptConfirmationForObject(identity, creator.id, function(err){ }); i find it at here, if confirm trade we use tradeid, if confirm market ,we use creatorid
  6. i will sell some skins on steammarket is there any except use community.startConfirmationChecker(confirmtime,identity)
  7. csgotrade is so many on china so i know it , sometimes steamcommunity will very busy value will cancel some trade
  8. 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?
  9. is there any way when some one chat to me i can know How many days have we been friends
  10. 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
  11. 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"); } });
  12. 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
  13. so can i use those cookies accept offer as gift replace identity_secret ? sessionidsteamLoginsteamLoginSecure*steamMachineAuth<SteamID>*
  14. 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"
  15. 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
×
×
  • Create New...