问题是如果用户添加机器人,机器人将接受但不会邀请到蒸汽组(无错误)
client.on("friendRelationship", (steamid, relationship) => {
community.getSteamUser(steamid, function(err, user){
if(err){
return console.log("["+getTime()+"] " +err);
} else{
if (relationship === 2) {
client.addFriend(steamid);
} else if (relationship === 3) {
if (CONFIG.INVITETOGROUPID) {
client.inviteToGroup(steamid, CONFIG.INVITETOGROUPID);
}
client.chatMessage(steamid, CONFIG.message);
}
}
});
});