Jump to content
McKay Development

Recommended Posts

Posted

Hello, I was wandering around my group and noticed that my bots have stopped inviting users to my group after a successful trade (3 bots in total, which do around 100 trades a day with complete strangers).

In fact, this is not only my group, I tried to make it invite users to my other group (which has only 55 members) and it still didn't invite them.

Is it something to do with my code or has something changed recently?

 

code bit: 

      community.inviteUserToGroup(user, config.groupToInvite, function(err){
              if(err){
                console.log("Error with inviting user to group\n"+err);
              } else {
                console.log(`Invited ${user} to ${config.groupToInvite}`);
              }
Posted

> Non-object method name: inviteUserToGroup

Ok, I think I understand. The inviteToGroup needs to be user.inviteToGroup(groupID) while you can also use community.inviteUserToGroup(userID, groupID).

 

Last question, when using the object method version(user.inviteToGroup) how does the script know who its inviting to the group? It's not like you can log into that account.

Posted

Last question, when using the object method version(user.inviteToGroup) how does the script know who its inviting to the group? It's not like you can log into that account.

If you're talking about steam-user 'inviteToGroup', you can pass the SteamID there

 

https://github.com/DoctorMcKay/node-steam-user/blob/master/README.md#invitetogroupusersteamid-groupsteamid

> inviteToGroup(userSteamID, groupSteamID)

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...