TomYoki Posted July 9, 2017 Report Posted July 9, 2017 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}`); } Quote
xLeeJYx Posted July 10, 2017 Report Posted July 10, 2017 its still working for me, so yea, maybe `user` is not in 64? Quote
African Posted July 11, 2017 Report Posted July 11, 2017 (edited) I'm wondering where you found that method "inviteUserToGroup". I looked in the wiki for the SteamCommunity module and couldn't find that method. @Dr. McKay Edited July 11, 2017 by African Quote
Vanilla Posted July 11, 2017 Report Posted July 11, 2017 I'm wondering where you found that method "inviteUserToGroup". I looked in the wiki for the SteamCommunity module and couldn't find that method. @Dr. McKayhttps://github.com/DoctorMcKay/node-steamcommunity/wiki/CSteamUser#invitetogroupgroupid-callback Quote
African Posted July 11, 2017 Report Posted July 11, 2017 https://github.com/DoctorMcKay/node-steamcommunity/wiki/CSteamUser#invitetogroupgroupid-callbackThanks but that doesn't have the same parameteres as what OP is using... Quote
Vanilla Posted July 11, 2017 Report Posted July 11, 2017 Thanks but that doesn't have the same parameteres as what OP is using...> Non-object method name: inviteUserToGroup Quote
African Posted July 11, 2017 Report Posted July 11, 2017 > Non-object method name: inviteUserToGroupOk, 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. Quote
Vanilla Posted July 11, 2017 Report Posted July 11, 2017 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) Quote
Recommended Posts
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.