-
Posts
3575 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
This isn't really the place to ask JavaScript questions. Stack Overflow is a better place for that. But, here's an example that will add 5 keys: manager.loadInventory(440, 2, true, (err, inventory) { if (err) { console.log(err); return; } let offer = manager.createOffer(recipient); // filter inventory to Mann Co. Supply Crate Keys // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter let keys = inventory.filter(item => item.market_name == 'Mann Co. Supply Crate Key'); // get only the first 5 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice let fiveKeys = keys.slice(0, 5); offer.addMyItems(fiveKeys); offer.send((err, status) => { // ... }); });
-
That's not something I'm going to help with.
- 1 reply
-
- csgo commend
- csgo
-
(and 2 more)
Tagged with:
-
i want to use proxy when it receives a rate limit warning
Dr. McKay replied to denpro331's topic in node-steam-user
You're not using a supported version of steam-user, so I can't help you. -
I don't know why you'd only be getting that data. Here's the response I got to the same exact call: { chat_group_summary: { chat_rooms: [ [Object] ], top_members: [ [SteamID], [SteamID] ], role_ids: [], role_actions: [], party_beacons: [], chat_group_id: '22328242', chat_group_name: 'Price Bot', active_member_count: 2, active_voice_member_count: 0, default_chat_id: '78507305', clanid: SteamID { universe: 1, type: 7, instance: 0, accountid: 42048766 }, chat_group_tagline: '"IN DEVELOPMENT..."', chat_group_avatar_sha: null, rank: null, default_role_id: null, appid: null, watching_broadcast_channel_id: '0', active_minigame_id: null, avatar_ugc_url: null, disabled: null, steamid_owner: null, chat_group_avatar_url: null, watching_broadcast_steamid: null } } Maybe your account is limited and limited accounts don't have all the data returned to them? Maybe you need to update steam-user?
-
Show the full code.
-
That's the same error and console output that your first code should produce. Did you run the wrong file or not save it?
-
The error is AccessDenied. Sounds like you don't have access to that group chat. But also that looks like the output your first code should produce. Did you run the wrong file?
-
Yes, there's a method to kick someone from a chat room group.
-
Having a limited account shouldn't affect activity status or accepting friend requests.
-
Sure, although I'm not sure what circumstances prompt a notification.
-
https://github.com/DoctorMcKay/node-steam-user/wiki/SteamChatRoomClient#getclanchatgroupinfoclansteamid-callback
-
requestRichPresence is not the appropriate method to set your persona state to online. Use setPersona instead.
-
Yeah, that should work for you. If you're logging in with an account name and password to an account that has mobile 2FA enabled, you need to provide a code every time even if you pass the steamguard string.
-
Are you setting your bot's persona status to online?
-
Are you giving it a two factor code?
-
The arguments passed to the login callback are err, sessionID, cookies, steamguard, oAuthToken. You've left out the cookies argument, which is why you aren't getting the correct value in steamguard.
-
Do you own the app in question? accountName is not a valid property of SteamUser objects, so that should expectedly be undefined.
-
I forgot about updating docs for this; I'll get that updated today. The filter function is the same as Array.prototype.filter, with the object passed to each invocation being of this format.
-
You can get other users' friends list from the WebAPI: https://steamapi.xpaw.me/#ISteamUser/GetFriendList
-
That functionality was indeed not implemented. I've gone ahead and added it for you in v4.21.0. Multi-user ad-hoc group chats are just a special kind of chat room group that is unnamed.
-
#justvalvethings