{"id":13703749,"url":"https://github.com/scholtzm/node-steam-groups","last_synced_at":"2025-12-24T15:43:28.790Z","repository":{"id":21791514,"uuid":"25114000","full_name":"scholtzm/node-steam-groups","owner":"scholtzm","description":"👥 Custom node-steam handler which provides group functions","archived":false,"fork":false,"pushed_at":"2015-08-05T14:22:50.000Z","size":150,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T16:50:50.478Z","etag":null,"topics":["groups","node-steam","nodejs","steam"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scholtzm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-12T08:43:56.000Z","updated_at":"2024-08-21T19:44:47.000Z","dependencies_parsed_at":"2022-07-23T07:16:23.736Z","dependency_job_id":null,"html_url":"https://github.com/scholtzm/node-steam-groups","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholtzm%2Fnode-steam-groups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholtzm%2Fnode-steam-groups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholtzm%2Fnode-steam-groups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scholtzm%2Fnode-steam-groups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scholtzm","download_url":"https://codeload.github.com/scholtzm/node-steam-groups/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224431270,"owners_count":17310078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["groups","node-steam","nodejs","steam"],"created_at":"2024-08-02T21:00:59.646Z","updated_at":"2025-12-24T15:43:28.737Z","avatar_url":"https://github.com/scholtzm.png","language":"JavaScript","readme":"# Steam Groups for node-steam\n\n[![NPM version](http://img.shields.io/npm/v/steam-groups.svg?style=flat)](https://www.npmjs.org/package/steam-groups)\n[![Dependency Status](https://david-dm.org/scholtzm/node-steam-groups.svg?style=flat)](https://david-dm.org/scholtzm/node-steam-groups)\n\nThis is a tiny node.js module which provides custom [node-steam](https://github.com/seishun/node-steam) handler for group functions.\n\n## Installation\n\n```\nnpm install steam-groups\n```\n\n## Usage\n\nFirstly, require `steam` as well as `steam-groups` module ...\n\n```js\nvar Steam = require('steam');\nvar SteamGroups = require('steam-groups');\n```\n\nAfter that, instantiate SteamGroups by providing the Steam client instance as a constructor parameter...\n\n```js\nvar client = new Steam.SteamClient();\nvar steamGroups = new SteamGroups(client);\n```\n\nThat's it. You can now use additional group functions.\n\n## Methods\n\n#### inviteUserToGroup(steamIdGroup, steamIdInvited)\n\nInvite user `steamIdInvited` to group `steamIdGroup`. `steamIdGroup` has to be in `groupID64` format.\n\nExample of `groupID64` can be found [here](http://steamcommunity.com/groups/tradingcards/memberslistxml/).\n\n#### acknowledgeGroupInvite(steamIdGroup, response)\n\nAccept or decline an invite to join group `steamIdGroup`. `response` is a `boolean` value.\n\nThis can be used in conjunction with `node-steam`'s `group` event.\n\n## Example\n\n```js\n// Require steam and steam-groups first\nvar Steam = require('steam');\nvar SteamGroups = require('steam-groups');\n\n// Create new SteamClient object and pass it as a constructor param\nvar client = new Steam.SteamClient();\nvar steamFriends = new Steam.SteamFriends(client);\n\nvar steamGroups = new SteamGroups(client);\n\n// Connect to Steam network and add additional code here ...\n\n// Decline any incoming group invite\nsteamFriends.on('group', function(group, relationship) {\n    if(relationship === Steam.EClanRelationship.Invited) {\n        steamGroups.acknowledgeGroupInvite(group, false);\n    }\n});\n\n// Invite anyone who messages us to a group\nsteamFriends.on('friendMsg', function(user, message, type) {\n    if(type === Steam.EChatEntryType.ChatMsg) {\n        steamGroups.inviteUserToGroup('1234567890', user);\n    }\n});\n```\n\n## Disclaimer\n\n`node-steam` is port of `SteamKit2`, which does not support group functions. Automating group functionalities might be against Steam's EULA. There are many people who run trading bots and automate this process, but remember that you are using this at your own risk.\n\n## License\n\nMIT. See `LICENSE`.\n","funding_links":[],"categories":["Packages"],"sub_categories":["Node.js"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscholtzm%2Fnode-steam-groups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscholtzm%2Fnode-steam-groups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscholtzm%2Fnode-steam-groups/lists"}