cob Posted July 13, 2016 Report Share Posted July 13, 2016 friends.on("friendMsg", function(user, msg, type, details){ if(type == Steam.EChatEntryType.ChatMsg){ if(msg == "invite"){ client.on("getSteamLevels", function(user, callback){ client.getSteamLevels(user, callback) callback(results); if(results >= 10){ client.inviteUserToGroup(user, "steamgroupidhere") } }); } }}); Thats my code.Whats wrong it with? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 13, 2016 Report Share Posted July 13, 2016 Why are you trying to listen for a getSteamLevels event? Quote Link to comment Share on other sites More sharing options...
cob Posted July 14, 2016 Author Report Share Posted July 14, 2016 (edited) Why are you trying to listen for a getSteamLevels event?That was a mistake.This is my current code: friends.on("friendMsg", function(user, msg, type, details){ if(type == Steam.EChatEntryType.ChatMsg){ if(msg == "invite"){ function getSteamLevels(steamids, callback){ getSteamLevels("config.steamid", results) if(results = 11){ client.inviteToGroup(user, "config.groupid") console.log("done"); } } } }}); Nevermind!Everything is good now. Edited July 14, 2016 by cob Quote Link to comment Share on other sites More sharing options...
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.