cob Posted July 13, 2016 Report 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
Dr. McKay Posted July 13, 2016 Report Posted July 13, 2016 Why are you trying to listen for a getSteamLevels event? Quote
cob Posted July 14, 2016 Author Report 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
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.