Search the Community
Showing results for tags 'node-steam-user'.
-
Is there any ways to run the bot 24/7 without VPS or opening the local computer 24/7?
-
I want my bot to respond to commands but it doesnt replay if the other wrote something behind the comment or just capitalized something. How do i change that ? Im using this atm : if (type == Steam.EChatEntryType.ChatMsg) { console.log("Friend message from " + name + ": " + msg); if (msg == "Ping") { friends.sendMessage(steamID, "Pong"); console.log("Send back: Pong");
-
Hello How i can cancel all requests coming from me as friends ? And how can I join a group , Do not accept the invitation to the group, but join yourself ?
-
How i can use it https://github.com/DoctorMcKay/node-steam-user/blob/c57b5cae748814d134ff1c8269fbb93d2852b568/protobufs/steammessages_inventory.steamclient.proto
-
hello how to get if added friend is in-game (cs:go) if not remove him from friends because i have this code to get players rank after bot accept friends request but the bot is crashing if the bot is not in csgo
-
Hi! How to run two different scripts in one PC? I can find this: logonID - A number to identify this login. The official Steam client derives this from your machine's private IP (it's the obfustucated_private_ip field in CMsgClientLogOn). If you try to logon twice to the same account from the same public IP with the same logonID, the first session will be kicked with reason SteamUser.EResult.LogonSessionReplaced. Defaults to 0 if not specified. If i run second script my first script stop working with error LogonSessionReplaced. What i need to do? Or how second can use session of first? Maybe its real to make one script only for auth which gives to others sessionID and cookies?
-
Hey, just starting out. Seems like a great library. Great moves, keep it up, proud of you. I'm stuck at the `logOn` function, though. First off, regardless of whether `twoFactorCode` is provided in the object, I still get prompted for a mobile authentication code. Although I'm not sure how providing it in the script would work because the script needs to be run to be prompted for it. When the code gets entered though, nothing ever happens. The terminal just sits there. Nothing ever even seems to time out. I tried logging in with another account that uses an e-mail code, and the same thing happened. It just sits there. Thanks for the patience to whoever replies.
-
is it possible to create script who can explore steam queue in nodejs to get free steam cards during sales?
-
Okay. I have a script to accept offers and so.. And it was working fine, and nothing has changed. And one day it started to show me the error, and script not working anymore at all. I simplifyed the code to find out the error.. This is the Code: const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const config = require('./config.json'); const client = new SteamUser(); const logOnOptions = { accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.shared_secret) }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('LoggedOn to Steam'); }); And this is the error: Logged into Steam C:\Users\ron1\WebProjects\TradeOffers3\node_modules\steam-user\components\friend s.js:494 groupList[friend.nGroupID].members.push(sid); ^ TypeError: Cannot read property 'members' of undefined at C:\Users\ron1\WebProjects\TradeOffers3\node_modules\steam-user\components \friends.js:494:29 at Array.forEach (<anonymous>) at SteamUser._handlers.(anonymous function) (C:\Users\ron1\WebProjects\Trade Offers3\node_modules\steam-user\components\friends.js:491:19) at SteamUser._handleMessage (C:\Users\ron1\WebProjects\TradeOffers3\node_mod ules\steam-user\components\messages.js:216:29) at emitThree (events.js:135:13) at CMClient.emit (events.js:216:7) at CMClient._netMsgReceived (C:\Users\ron1\WebProjects\TradeOffers3\node_mod ules\steam-client\lib\cm_client.js:323:8) at CMClient.handlers.(anonymous function) (C:\Users\ron1\WebProjects\TradeOf fers3\node_modules\steam-client\lib\cm_client.js:603:8) at CMClient._netMsgReceived (C:\Users\ron1\WebProjects\TradeOffers3\node_mod ules\steam-client\lib\cm_client.js:305:24) at emitOne (events.js:115:13) Can someone help me to understand why is this happening?
-
Hi, I would like to ask if there's any free hosting site for trading bots? I found some hosting site but I don't know how to use them correctly and most of them are just trail.
-
Hello, i cant get requestPlayersProfile to work. var Steam = require('steam-client'); var SteamID = require("steamid"); var GlobalOffensive = require('globaloffensive'); var SteamUser = require('steam-user'); var crypto = require('crypto'); var account_name = "name"; var password = "password"; var client = new SteamUser(); var csgo = new GlobalOffensive(client); var sentryfile = fs.readFileSync(account_name + '.sentry'); var sha = crypto.createHash('sha1').update(sentryfile).digest(); client.setSentry(sha); client.logOn({ "accountName": account_name, "password": password }); client.on('loggedOn', function(details) { console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID()); client.setPersona(SteamUser.EPersonaState.Offline); client.gamesPlayed(730); }); csgo.on("connectedToGC", function() { console.log("connectedToGC"); //setInterval(function(){ if ( csgo.haveGCSession ) { console.log(csgo.inventory); var account_id = new SteamID("76561198340987241"); csgo.requestPlayersProfile(account_id, function(data) { console.log(data); }); } //}, 3000); }); csgo.on("playersProfile", function(data) { console.log("Profile gotten"); }) I placed some console.log() into your code, to see whats coming back. handlers[Language.PlayersProfile] = function (body) { var proto = Protos.CMsgGCCStrike15_v2_PlayersProfile.decode(body); console.log("here"); console.log(proto); // { requestId: null, accountProfiles: [] } console.log(body); // <Buffer >... } always empty. Can you see what i'm doing wrong? Thanks!
- 2 replies
-
- node.js
- node-steam-user
-
(and 1 more)
Tagged with:
-
my node.js source : client.getEncryptedAppTicket(appid,null, function(err, ti){ console.log(err); console.log(ti); }); result : { Error: Fail at Object.exports.eresultError (C:\Users\JaeWon\Desktop\node-steam-user-master\node-steam-user-master\components\helpers.js:73:12) at C:\Users\JaeWon\Desktop\node-steam-user-master\node-steam-user-master\components\appauth.js:20:21 at Object.cb (C:\Users\JaeWon\Desktop\node-steam-user-master\node-steam-user-master\components\messages.js:160:4) at CMClient._netMsgReceived (C:\Users\JaeWon\Desktop\node-steam-user-master\node-steam-user-master\node_modules\steam-client\lib\cm_client.js:321:26) at CMClient.handlers.(anonymous function) (C:\Users\JaeWon\Desktop\node-steam-user-master\node-steam-user-master\node_modules\steam-client\lib\cm_client.js:603:8) at CMClient._netMsgReceived (C:\Users\JaeWon\Desktop\node-steam-user-master\node-steam-user-master\node_modules\steam-client\lib\cm_client.js:305:24) at emitOne (events.js:96:13) at TCPConnection.emit (events.js:191:7) at TCPConnection._readPacket (C:\Users\JaeWon\Desktop\node-steam-user-master\node-steam-user-master\node_modules\steam-client\lib\tcp_connection.js:179:7) at emitNone (events.js:86:13) eresult: 2 } undefined can u help me?
-
Hi, I'm sorry to take your time, but I couldn't find answer myself. How can I validate email on account? I can see the method requestValidationEmail, but how to actually validate it using the code sent to my mail?
-
Is it possible to rate artwork using this api?
-
client.requestFreeLicense([350870,351020,351270,351540,359080,362970,366160,366440,370580,370590,370880,377560,378180,378910,379200,380760,381570,383860,384560,386310,388520,388780,389509,393360,393480], function(err, grantedPackages, grantedAppIDs)looks like doesn't work anymore? 0 package added, callback doesn't return anything
-
I am fairly new to nodejs and have posted other questions on this forum and i am learning a lot form this forum Question: How do i use the steam webAPI get commands with the node-steam-user, node-steamcommunity, node-steam-tradeoffer-manager, and node-steam-totp. Those are the steam npm packages i am using. The webAPI Command i want to call is: GET https://api.steampowered.com/ISteamEconomy/GetAssetPrices/v1/I understand it needs my apikey + appid Appid = i think it is 753_6 for to use it with trading cards i am not sure if that is even the correct webAPI caller I want it to get the names and prices of the Trading Cards and Backgrounds if possible all in a .json where i could see it at one time
-
Is it possible to start the bot in a unknown game so it shows as game some custom text ?
-
Hello i'm trying to control my bot via an http application client.logOn({ accountName : CONFIG.USERNAME, password : CONFIG.PASSWORD }); Triggers Steam Guard Code: which is expected and like it should be however the issue is. I would like to enter the code from an http application? and not from the command prompt. how would i go about doing this. How would i go about submitting the guard code without manually entering it? this might be basic nodejs that im just unaware of however i been looking around and it don't look like i can submit console data ? -also im not asking how to get the data from the http site to the bot i got that part on lock. More just how i would go about entering it ? is there like an event that i can trigger with the auth that i get from my http server?
-
I want my bot to answer on chat message if my status is set to away. What did i do wrong ? client.getPersonas((client), (personas) => { if (client.persona_state == 3) { friends.sendMessage(steamID, "AFK"); console.log("Send back: AFK"); } });
-
Currently there is a feature branch called appauth which contains methods for retrieving the auth session ticket (SteamUser.getAuthSessionTicket) -- does this feature work correctly? I saw in another thread that Dr. McKay was acknowledging that fetching such a ticket was not possible _after_ commits to this branch had been made. I'm interested in retrieving the auth session ticket for a game. I understand that it would be effectively impossible to circumvent certain features that fall under VAC, but in this case there are web services which use the auth session ticket which would be useful to me. Currently I'm able to receive a ticket, but presenting said ticket to the server I'm trying to talk to results in an "unauthorized" response. Anyone know if this feature is working + I'm doing something wrong, or if it's currently not working, and what needs to be done to fix it?
-
Hello I wanted to make my bot when someone adds it said "hello (name of person) thanks for adding" how do I? I only have this but I do not know how to put the person's name I have this: how to customize to show the person's name? client.on('friendRelationship', (steamid, relationship) => { if (relationship === 2) { client.addFriend(steamid);client.chatMessage(steamid, 'Hello! Thanks for add me, if you need help write !help'); console.log("You add " + (steamid)) }});
-
the following is my code. client.on('friendRelationship', function (steamID, relationship) { if (relationship == SteamUser.Steam.EFriendRelationship.RequestRecipient){ steamID == "76561198253857131"; client.addFriend(steamID); } }) for example.my friend's SteamID64 is 76561198253857131. but the code seems not executed. how to deal with the pro.
-
bot.js: manager.on('pollFailure', function (err) { if (err) { console.log(`Error polling for trade offers ${err.message}`); console.log(formatted); // time_and_date client.logOff(); sleep.sleep(10); client.logOn(logOnOptions); } }); bot-out-0.log Logged: my_name 2017-09-23 16:42:57 Error polling for trade offers socket hang up 2017-09-23 18:42:57 Logged: my_name 2017-09-23 18:43:27 bot-error-0.log Error: Already logged on, cannot log on again at SteamUser.logOn (/home/steam/node_modules/steam-user/components/logon.js:11:9) at TradeOfferManager.<anonymous> (/home/steam/bot.js:267:10) at emitOne (events.js:96:13) at TradeOfferManager.emit (events.js:188:7) at getOffers (/home/steam/node_modules/steam-tradeoffer-manager/lib/polling.js:54:9) at _apiCall (/home/steam/node_modules/steam-tradeoffer-manager/lib/index.js:453:4) at _community.httpRequest (/home/steam/node_modules/steam-tradeoffer-manager/lib/webapi.js:32:4) at SteamCommunity._checkHttpError (/home/steam/node_modules/steamcommunity/components/http.js:90:3) at Request._callback (/home/steam/node_modules/steamcommunity/components/http.js:50:61) at self.callback (/home/steam/node_modules/request/request.js:186:22) What is wrong with this code?
-
If i receive a message while my steam account is set to away the bot should answer 'Afk'. Im new to node.js and dont know how to code this. Please dont blame me
-
my bot accepts requests for friendship, I want to know how do I delete the past friendship requests for example 7 days