Jump to content
McKay Development

cob

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by cob

  1. 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.
  2. 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?

×
×
  • Create New...