Jump to content
McKay Development

jafix

Member
  • Posts

    40
  • Joined

  • Last visited

Posts posted by jafix

  1. Hey,

     

    I want to display a message as a non-Steam game and I also want to idle a game on the background. 

     

    What I have now:

    console.log("Logging in to Steam...");
    
    client.logOn(logOnOptions);
    
    client.on('loggedOn', () => {
      console.log('Logged into Steam');
    
      client.setPersona(1);
      client.gamesPlayed("Custom message", 440);
    });
    

    But tf2 doesnt idle

  2. Though it is possible to listen for friendRelationship

    client.on('friendRelationship', function(sid, relationship) {
    	
        //incoming friend requests
        if(relationship == 2) {
            console.log(sid + ' added me.');
        }
    });
    

    sid is the id of the friend who added you

  3. client.logOn(logOnOptions);
    
    client.on('loggedOn', () => {
       console.log('Logged into Steam (JafixBot2)');
    
       client.setPersona(SteamUser.Steam.EPersonaState.Online);
       client.gamesPlayed('Trading Emoticons And Backgrounds');
       client.chatMessage('76561198259000054', 'Logged in!')
       client.chatMessage('76561198178736621', 'Logged in!')
       community.startConfirmationChecker('20000', 'secret', function(err) {
       if (err) {
          throw err;
        }
      
      });
    });
    

    This is the code i use for logging in.

×
×
  • Create New...