Jump to content
McKay Development

Auto Join Steam Group


Random

Recommended Posts

I'm still pretty new and I've been tinkering around with this. I got friend requests to auto accept with.

client.on('friendRelationship', function(steamID, relationship) {
    if (relationship == SteamUser.Steam.EFriendRelationship.RequestRecipient) {
        client.addFriend(steamID);
	console.log("Added " + steamID.getSteam3RenderedID() + "!");
    }
});

How would I auto accept group invites? Thanks!

Link to comment
Share on other sites

I tried it... But don't think I did it right since it crashes when I get invited. I definitely need more practice!

client.on('groupRelationship', function(steamID, relationship) {
if(relationship === Steam.EClanRelationship.Invited) {
        client.respondToGroupInvite(accept, true);
        console.log("Joined Group " + steamID.getSteam3RenderedID() + "!");
}
});

(Accidentally posted in wrong thread I was reading)

Edited by Random
Link to comment
Share on other sites

I changed,

if(relationship === Steam.EClanRelationship.Invited) {

to

if(relationship == SteamUser.Steam.EClanRelationship.Invited) {

but now I'm getting

ReferenceError: accept is not defined
    at SteamUser.<anonymous> (C:\Users\Random\Files\bottttttttttt\node-steam-user-master\bot\random.js:63:37)
    at emitTwo (events.js:106:13)
    at SteamUser.emit (events.js:191:7)
    at SteamUser._emitIdEvent (C:\Users\Random\Files\bottttttttttt\node-steam-user-master\components\utility.js:29:12)
    at C:\Users\Random\Files\bottttttttttt\node-steam-user-master\components\friends.js:415:9
    at Array.forEach (native)
    at SteamUser._handlers.(anonymous function) (C:\Users\Random\Files\bottttttttttt\node-steam-user-master\components\friends.js:393:23)
    at SteamUser._handleMessage (C:\Users\Random\Files\bottttttttttt\node-steam-user-master\components\messages.js:202:29)
    at emitThree (events.js:116:13)
    at CMClient.emit (events.js:194:7)

I don't know how to write this part...

Link to comment
Share on other sites

  • 5 months later...

Hey may i have the full code fixed plzzz i really need this for my bot an ive searched everywhere

This will accept ALL incoming group invite

 

client.on('groupRelationship', function (steamID, relationship) {
	if (relationship == SteamUser.Steam.EClanRelationship.Invited){
	client.respondToGroupInvite(steamID, true);
	}
});
Edited by Vanilla
Link to comment
Share on other sites

This will accept ALL incoming group invite

 

client.on('groupRelationship', function (steamID, relationship) {
	if (relationship == SteamUser.Steam.EClanRelationship.Invited){
	client.respondToGroupInvite(steamID, true);
	}
});

do u have an auto invite all friends to a pecifik group? that i can add to my bot

Link to comment
Share on other sites

do u have an auto invite all friends to a pecifik group? that i can add to my bot

Use 'inviteToGroup(userSteamID, groupSteamID)'

 

It's possible to send a lot people to spesific group, but just like the wiki said: "sending automated group invites is a violation of the Steam Subscriber Agreement and can get you banned."

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...