All Projects → scholtzm → node-steam-groups

scholtzm / node-steam-groups

Licence: MIT license
👥 Custom node-steam handler which provides group functions

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to node-steam-groups

Sapic
A useful tool to crop your Steam profile background for showcases.
Stars: ✭ 189 (+1081.25%)
Mutual labels:  steam
Browserextension
💻 SteamDB's extension for Steam websites
Stars: ✭ 230 (+1337.5%)
Mutual labels:  steam
vdf
A Lexer and Parser for Valves Data Format (known as vdf) written in Go
Stars: ✭ 30 (+87.5%)
Mutual labels:  steam
Stormkitty
🔑 Open source stealer written on C#, all logs will be sent to Telegram bot.
Stars: ✭ 198 (+1137.5%)
Mutual labels:  steam
Getdlcinfofromsteamdb
Get Data from Steam / SteamDB / EpicDB (ex Get DLC Info from SteamDB) it's a userscript able to extract all the information of the DLCs Games from Steam / SteamDB / EpicDB and are exported in various formats. It also has small tools :)
Stars: ✭ 210 (+1212.5%)
Mutual labels:  steam
Docker Dontstarvetogether
Dockerfile for building a Don't Starve Together dedicated server image.
Stars: ✭ 240 (+1400%)
Mutual labels:  steam
Oxide.rust
Rust game extension for the Oxide modding framework
Stars: ✭ 185 (+1056.25%)
Mutual labels:  steam
Koi
Koi Farm, a koi breeding game
Stars: ✭ 343 (+2043.75%)
Mutual labels:  steam
Steampy
A Steam trading library for python 3
Stars: ✭ 212 (+1225%)
Mutual labels:  steam
Burningknight
C# branch of BK
Stars: ✭ 251 (+1468.75%)
Mutual labels:  steam
Dota2ai
This project is a improved Dota2 Bot script based on Valve's default AI. Relase on steam workshop as Ranked Matchmaking AI. This script has more than 1 million current subscribers on Steam Workshop.
Stars: ✭ 199 (+1143.75%)
Mutual labels:  steam
Steamlinux
🐧 The Big List of Steam Games on GNU/Linux
Stars: ✭ 208 (+1200%)
Mutual labels:  steam
Vac Bypass
Valve Anti-Cheat bypass written in C.
Stars: ✭ 241 (+1406.25%)
Mutual labels:  steam
Steamforwarder
steam_api.dll implementation for wine. Your windows games now can interact with your linux steam! (This repo mirrors https://gitlab.com/xomachine/SteamForwarder)
Stars: ✭ 190 (+1087.5%)
Mutual labels:  steam
vdf
📜 Package for working with Valve's text and binary KeyValue format
Stars: ✭ 146 (+812.5%)
Mutual labels:  steam
Steam Condenser Php
A library for querying the Steam Community, Source, GoldSrc servers and Steam master servers
Stars: ✭ 187 (+1068.75%)
Mutual labels:  steam
Luxtorpeda
Steam Play compatibility tool to run games using native Linux engines
Stars: ✭ 232 (+1350%)
Mutual labels:  steam
php-steam-web-api-client
Automatically generated api client for the Steam Web API.
Stars: ✭ 79 (+393.75%)
Mutual labels:  steam
JavaSteam
Java library that provides an interface to directly interact with Valve's Steam servers.
Stars: ✭ 70 (+337.5%)
Mutual labels:  steam
Steamgriddb Manager
Automatically find games from launchers on your system and import them into your Steam library with a click of a button.
Stars: ✭ 241 (+1406.25%)
Mutual labels:  steam

Steam Groups for node-steam

NPM version Dependency Status

This is a tiny node.js module which provides custom node-steam handler for group functions.

Installation

npm install steam-groups

Usage

Firstly, require steam as well as steam-groups module ...

var Steam = require('steam');
var SteamGroups = require('steam-groups');

After that, instantiate SteamGroups by providing the Steam client instance as a constructor parameter...

var client = new Steam.SteamClient();
var steamGroups = new SteamGroups(client);

That's it. You can now use additional group functions.

Methods

inviteUserToGroup(steamIdGroup, steamIdInvited)

Invite user steamIdInvited to group steamIdGroup. steamIdGroup has to be in groupID64 format.

Example of groupID64 can be found here.

acknowledgeGroupInvite(steamIdGroup, response)

Accept or decline an invite to join group steamIdGroup. response is a boolean value.

This can be used in conjunction with node-steam's group event.

Example

// Require steam and steam-groups first
var Steam = require('steam');
var SteamGroups = require('steam-groups');

// Create new SteamClient object and pass it as a constructor param
var client = new Steam.SteamClient();
var steamFriends = new Steam.SteamFriends(client);

var steamGroups = new SteamGroups(client);

// Connect to Steam network and add additional code here ...

// Decline any incoming group invite
steamFriends.on('group', function(group, relationship) {
    if(relationship === Steam.EClanRelationship.Invited) {
        steamGroups.acknowledgeGroupInvite(group, false);
    }
});

// Invite anyone who messages us to a group
steamFriends.on('friendMsg', function(user, message, type) {
    if(type === Steam.EChatEntryType.ChatMsg) {
        steamGroups.inviteUserToGroup('1234567890', user);
    }
});

Disclaimer

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.

License

MIT. See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].