-
Posts
16 -
Joined
-
Last visited
Posts posted by Cubson
-
-
1 hour ago, Dr. McKay said:
No, there isn't any native support in the library for that. It would probably be easier for you to just manually send the request and parse the JSON yourself.
Okay, thank you again!
-
Native support for changing the count parameter. So I'll have to edit the library to add that?
-
7 hours ago, Dr. McKay said:
You can use the count URL parameter to filter how many items are returned, like this: https://steamcommunity.com/inventory/76561198006409530/753/6?count=1
Thank you very much! But no native support if I understood you correctly?
-
I only want to get the amount of gems a user has, so I don't have to load the whole inventory because gems are (usually) the first item in all Steam inventories. Is there any way to achieve that without loading the wholle inventory?
-
The count parameter is how many comments to return in the response. You could probably change it and it would work.
Oh, so it's about the new comments that appear after you send yours?
-
My best guess is that it indicates that you want to post to a profile, not to a forum thread.
So you think both /-1 and the count param are responsible for the same thing?
-
"uri": "https://steamcommunity.com/comment/Profile/post/" + userID.toString() + "/-1", "form": { "comment": message, "count": 6, "sessionid": this.getSessionID() },
What's -1 in the end of the URI and what's "count" param?
-
Actually the main thing I want your lib to get is ability to get all comments and delete them. We are making an anti-spam bot with my friend.
-
Are you going to implement this feature in future? If yes, will it happen soon or not?
-
Hey, is there a way to send comments to workshop items and guides?
-
You'd need to use node-steam-user for that, node-steamcommunity wouldn't work. Look around for the invite-related events.
Couldn't you answer my another question?
-
Hello, I want to make a script that'll automatically write a custom message to everyone who invites me to play CS:GO. How can I do it? And I'm a very big noob in JavaScript and Node.JS and because of it I beg you to explain everything step-by-step.
-
if (offer.partner.getSteamID64() === 'firsttrustedguysteamid' || 'secondtrustedguysteamid') {
is not a valid syntax.
If you wish to compare multiple IDs at once you can always put them in array and use indexOf();
Please, give me an example. What does mean "use indexOf()"? Where do I have to use it?
-
I experienced this when I withdrawed some things from the site, then I checked status and it told me that everything is fine, items are in steam inventory. I didn't accept the trade by myself and even tried to send it from another account. And it successfully accepted all trades.
-
const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); const logOnOptions = { accountName: 'hereismylogin', password: 'hereismypassword', twoFactorCode: SteamTotp.generateAuthCode('hereismysharedsecret') }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log(' > Logged into Steam'); client.setPersona(SteamUser.Steam.EPersonaState.Online); client.gamesPlayed("Steam Test Bot by Cubson [Not Busy]"); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies, function(err) { if (err) return console.log(err); console.log(" > Got API key!"); }); community.setCookies(cookies); community.startConfirmationChecker(6000, 'hereismyidentitysecret'); }); manager.on('newOffer', (offer) => { client.gamesPlayed("Steam Test Bot by Cubson [Busy]"); if (offer.partner.getSteamID64() === 'firsttrustedguysteamid' || 'secondtrustedguysteamid') { offer.accept((err, status) => { if (err) { console.log(err); client.gamesPlayed("Steam Test Bot by Cubson [Not Busy]"); } else { community.checkConfirmations(); console.log(`Accepted offer. Status: ${status}.`); client.gamesPlayed("Steam Test Bot by Cubson [Not Busy]"); } }); } });
What's wrong? And I'm a very big noob in JavaScript and Node.JS and because of it I beg you to explain everything step-by-step.
P.S. Maybe update to IPB 4?
Partially loading inventory?
in node-steam-tradeoffer-manager
Posted
Yep, but I doubt it'd go beyond the first page.