-
Posts
26 -
Joined
-
Last visited
CellSplitter's Achievements
-
I use Version 3.29.3 from steam-user and there works this Code very well SteamGuard event fires only lastcodewrong if the Code is wrong otherwise not. I give him the Code over client.LogOn via TwoFactorCode But will check options from a newer Version Thx...
-
CellSplitter reacted to a post in a topic: Game Idle without SharedSecret
-
Hey thank You for your Answer, i found this too today and i solve my Problem. // => IdleClient on/off Switch let online = 0; // Only a SNIPPET from my Chat Commands } else if(CONFIG.OWNER.indexOf(SENDER.getSteamID64()) >= 0 || CONFIG.OWNER.indexOf(parseInt(SENDER.getSteamID64())) >= 0) { // Admin Chat Commands if (MSG.toUpperCase().indexOf("!ONIDLE") >= 0) { let n = MSG.toUpperCase().replace("!ONIDLE ", "").toString(); IdleClient.setOption("promptSteamGuardCode", false); let IdleLogOnOptions = { accountName: CONFIG.IdleAccount.USERNAME, password: CONFIG.IdleAccount.PASSWORD, twoFactorCode: n }; IdleClient.logOn(IdleLogOnOptions); IdleClient.on("steamGuard", function(domain, lastCodeWrong) { if(lastCodeWrong) { sleep(1000).then(() => { client.chatMessage(SENDER, "⛔ You don't set the right SteamGuard Code!"); }); } }); IdleClient.on("loggedOn", function() { IdleClient.getPersonas([IdleClient.steamID], (personas) => { IdleClient.setPersona(SteamUser.Steam.EPersonaState.Online); IdleClient.gamesPlayed(CONFIG.IdleAccount.IDLEGAMES); }); console.log("[" + getTime() + "] [INFO] [IdleClient] Login successfully!"); sleep(1000).then(() => { client.chatMessage(SENDER, "✅ IdleClient Login successfully!"); }); online = 1; }); } else if(MSG.toUpperCase() === "!OFFIDLE") { if (online === 1) { online = 0; IdleClient.logOff(); sleep(1000).then(() => { client.chatMessage(SENDER, "✅ IdleClient Logout successfully!"); }); } else { sleep(1000).then(() => { client.chatMessage(SENDER, "⛔ IdleClient not running!"); }); }; Works like a Charm now, iam happy :-) EDIT: I don't know why this editor shows the code a bit shifted?!
-
Hey, i will idle my Gamehours from my main Acc without loosing my Mobile Confirmation. i start it via Message from a second Account (Command + right 2fa Code like "!boost KH54E") if the 2fa Code right, it works good, but if it wrong it fires a Command Prompt to Console "Steam Guard App Code:" ...but i run this Bot via PM2 and i cant set the right 2fa Code in the Console. MY CODE: (snippet) } else if (MSG.toUpperCase().indexOf("!BOOST") >= 0) { let n = MSG.toUpperCase().replace("!BOOST", "").toString(); let IdleLogOnOptions = { accountName: CONFIG.IdleAccount.USERNAME, password: CONFIG.IdleAccount.PASSWORD, twoFactorCode: n }; IdleClient.logOn(IdleLogOnOptions); IdleClient.on("loggedOn", function() { IdleClient.getPersonas([IdleClient.steamID], (personas) => { sleep(1000).then(() => { console.log("[" + getTime() + "] [INFO] [IdleClient] Login successfully!"); IdleClient.setPersona(SteamUser.Steam.EPersonaState.Online); IdleClient.gamesPlayed(730); online++ }); }); }); sleep(2000).then(() => { if ( online === 1) { client.chatMessage(SENDER, "✅ IdleClient successfully Login!"); } else { client.chatMessage(SENDER, "⛔ You don't set the right 2FA Code!"); }; }); Can i handle it that the Bot gives me only the Message back that i set the wrong 2fa Code without fires the Command Prompt, so i can try it again with the right Code?
-
SENPAY98K reacted to a post in a topic: client.gamesPlayed
-
Jack Nolddor reacted to a post in a topic: client.gamesPlayed
-
Dr. McKay reacted to a post in a topic: client.gamesPlayed
-
Solved by myself, my mistake was that the Gamedetails on this Account set to privat. Set on open for all and now it works like a charme
-
I mean to hear, there is a Limit over 33 Games, but i dont know it clearly
-
CellSplitter started following RateLimitExceeded from sendFriendMessage method , client.gamesPlayed , Array Elements to List and 3 others
-
Hey, after 2 years i will rewake my old +REP Profile Commentbot. Runs good, but if i look on Bots Profile Page, it shows only that he is online and not in a non Steam Game. const SteamUser = require('steam-user'); const SteamCommunity = require('steamcommunity'); const SteamTotp = require('steam-totp'); const TradeOfferManager = require('steam-tradeoffer-manager'); const fs = require('fs'); const config = require('./config.json'); const sleep = (milliseconds) => { return new Promise(resolve => setTimeout(resolve, milliseconds)) } const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); const logOnOptions = { accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret) }; client.logOn(logOnOptions); client.on("loggedOn", function() { client.getPersonas([client.steamID], (personas) => { console.log("Logged in as " + personas[client.steamID].player_name + " [ " + client.steamID + " ]."); client.setPersona(SteamUser.Steam.EPersonaState.Online); client.gamesPlayed("Profile Comment Service"); }); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); }); If i look in my Steam App (Android) and on Steam App (Windows) the Bot is still shows only online. If i look in my Browser like Chrome or Firefox the Bot plays Custom Game named "Profile Comment Service" thats right Is there over the 2 years anything new that i must do to get this working again?
-
Cool nice that works. Thx for this. Can u tell me how can i set for every element an • like • 730 • 440 • 4000 SOLVED
-
CellSplitter reacted to a post in a topic: Array Elements to List
-
Hey, i have a Problem. I have an Array. For Example: let Games = [730,440,4000] The Array Output looks like: 730,440,4000 But i want an Output like an List without comma and every Array Element in a new Line. That looks so: 730 440 4000 How can i solve this? Thx in advance ☺
-
Question community.getSteamUser is not a function -- help please
CellSplitter replied to Snavellet's topic in node-steamcommunity
// Set this to your Imports let SteamCommunity = require("steamcommunity"); U must install it with "npm i steamcommunity", if u have a package.json file u can save it with "--save" after "npm i steamcommunity --save" // Then make community instance of SteamCommunity let community = new SteamCommunity(); Thats all -
SnaBe reacted to a post in a topic: Can't post comments on profiles
-
ok thanks a lot, then i have to deal with it now
-
Hey, i will get my Inventory History and specific my CSGO Knife History. i see this is now a part of node-steamcommunity, but i dont know how i get this. My coding in node (javascript) is not so good for this Moment. I learn it now. Have anyone a code snippet for me? Or a good manuell for this how i can solve this? Special Thanks in advance I try it with let Inv = []; community.getHistory(client.steamID,function(err, user){ if (err) { console.log(err); } else { console.log(user.Inv); } }); But its not working and it is rly bad code i think ?
-
If u have a free Account, you must be friends to comment on their profile. You must spend minimum 5 Dollar to your Acc. The higher your steam level, the more comments you can write before getting a cool down
-
Question set emitter.setMaxListeners()
CellSplitter replied to CellSplitter's topic in node-steam-user
Its my Code ...i know why, it add random people as friend, and if friend add to group -
Question RateLimitExceeded from sendFriendMessage method
CellSplitter replied to Walle's topic in node-steam-user
Is the Bot Account a free Account? I can send so many MSGs i want from my BOT to my main Account. But why u must send a message all 100ms? This are 10 MSGs per second and 60 in a minute ? Is not enough once per hour or on request? In my mind, there are no limitations. Only on Profile Comments... I have limited MSGs from Users to my BOT by my self to 1 MSG in 2 sec ...Otherwise they get autoblocked from my BOT But there was a chat update few days ago, i dont know if there are changes like this EDIT: I spam my Bot for few minutes, all works fine, can u send ur code to take a look?- 1 reply
-
- node.js
- node-steam-user
-
(and 1 more)
Tagged with:
-
Hey, i have a Problem in a function from my BOT I become a warning: (node:21607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 friendRelationship listeners added. Use emitter.setMaxListeners() to increase limit I need to use emitter.setMaxListeners(), but i dont know how to use it