Jump to content
McKay Development

TFA

Member
  • Posts

    1
  • Joined

  • Last visited

TFA's Achievements

  1. HI, I'm having trouble employing the group invite function of the steam-user module. My script is very simple, and meant to just invite the user to a designated group upon login: const SteamUser = require('steam-user'); const net = require('net'); const client = new SteamUser(); const SteamID = require('steamid'); ///First, log into Steam const logOnOptions = { accountName: 'xxx', password: 'xxx' //Disable your steam guard }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID()); client.setPersona(SteamUser.EPersonaState.Online); client.gamesPlayed(440); var sid = new SteamID("103582791434188513"); client.inviteToGroup( "76561198161775645", sid ); }); client.on('accountLimitations', function(limited, communityBanned, locked, canInviteFriends) { var limitations = []; if (limited) { limitations.push('LIMITED'); } if (communityBanned) { limitations.push('COMMUNITY BANNED'); } if (locked) { limitations.push('LOCKED'); } if (limitations.length === 0) { console.log("Our account has no limitations."); } else { console.log("Our account is " + limitations.join(', ') + "."); } if (canInviteFriends) { console.log("Our account can invite friends."); } }); The output is as follows: And yet, I don't receive any invitation. The SteamID64 and GroupID64 are both valid, so why might I have this issue?
×
×
  • Create New...