Search the Community
Showing results for tags 'nodejs'.
-
I'm trying to post a comment on my group (https://steamcommunity.com/groups/testingwall) but it's not working for some weird reason. const content = "hello world"; const gid = config.clanid; community.postGroupComment(gid, content); This is the "clanid" in my config: { [..] "clanid": "103582791470169702" } This is the error I'm getting when I run the program [..]\Bot\node_modules\steamcommunity\components\groups.js:611 "uri": "https://steamcommunity.com/comment/Clan/post/" + gid.getSteamID64() + "/-1/", ^ TypeError: Cannot read property 'getSteamID64' of undefined at SteamCommunity.postGroupComment ([..]\Bot\node_modules\←[4msteamcommunity←[24m\components\groups.js:611:64) Please help me!
-
Good day, So I am kind of new to js and this may be a noob question, if it is I am very sorry for asking. But here is what I am having issues with: const getInventory = () => { manager.loadInventory(730, 2, true, (err, inventory) => { if (inventory) { return inventory; } if (err) { console.log(err); } }) } So I export this function, but when I try console logging it, it doesn't return anything, just undefined. But when I put inventory into a callback, I get it. Is there something I am missing here? Thanks!
-
Hello, bot successfully accepts first trade offer but does not accept next day or second offer; my console log is : trade offer status : undefined.
- 1 reply
-
- suggestion
- nodejs
-
(and 2 more)
Tagged with:
-
I've tried sending all my friends a message. so i made a function for that: function messageAllCommand() { var messageAll = readlineSync.question('Enter message: '); for (var friend in client.myFriends) { console.log(friend); client.chatMessage(friend, messageAll); } }but somewhy, it seems really random who gets the message tho it prints everyone's id it but still don't send everyone the message. here are the ID's: https://pastebin.com/5NGqV340 E.G: it printed the user id: 76561198278317090 but didn't sent the message. and it printed the user id: 76561198173748582 this time it sent the message. I checked and friendsList was emitted before BTW this forum is real good and i get answers.
-
Is there a module to confirm sell orders on mobile, I have over 25k+ items that I want to sell and I haven't found a module to confirm mobile orders.
- 3 replies
-
- nodejs
- steamcommunity
-
(and 2 more)
Tagged with:
-
Hi everyone, have this nodejs backend which is calling the Steam api via passport-steam to log a user in. This is working and in this code I am getting the user back. app.get( //regex to validate auth/steam/ and auth/steam/return /^\/auth\/steam(\/return)?$/, passport.authenticate('steam', { failureRedirect: '/' }), (req, res) => { console.dir(req.user); res.redirect('/account'); } );So I have user as req.user in the callback after the Steam Login passes. My question is: What is the best (AND MOST SECURE!) way to pass this req.user to a route, which I will then call GET from the Frontend Framework so I can get this data to the Frontend? Furthermore, how does my Frontend communicate with my nodejs bot in a secure manner? (maybe this is a broad question but worht a try!) Right now I have this route set up: app.get('/account', (req, res) => { res.send({user: req.user}); });But user is null. Any help is appreciated!
-
Hello McKay. First of all I wanna say thank you for your contribution. I saw all these node-steam-* modules and came this forum. I wanna say I'm proud of you and you are doing great libraries here. I'm a deeply experienced javascript developer. If you have some problems to fix or maintain some modules, maybe I can help you. NOTE: I don't know anything about steam dev api and how trade works... Can we have some section for contributors talk about internal issues? That way I can learn very fast how steam trade works and other stuffs too... Maybe 'Developers' or 'Contributors' might be good name for new section. What do you think? BTW: If I did something wrong please forgive me. I don't have much experience with Forum