Jump to content
McKay Development

codingcore

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by codingcore

  1. Hey ^^

     

    So about 1 week ago I started to develop my first SteamBot ever in Node.JS

    var Steam = require("steam");
    var SteamUser = require ("steam-user");
    var client = new SteamUser();
    
    var friends = new Steam.SteamFriends(client.client);
    
    var SteamCommunity = require('steamcommunity');
    var community = new SteamCommunity();
    
    var client;
    
    var SteamID = require("steamid");
    
    
    client.logOn({
       "accountName": "",
       "password": ""
     });
    
    client.on('loggedOn', () => {
    	
    	console.log('Logged in! Bot is now logged into your account!');
    
    	client.gamesPlayed('730');
    	
    });
    
    client.on('friendRelationship', function(sid, relationship) {
        if(relationship == 2) {
            client.addFriend(sid);
            console.log("BOT #1: Added a new friend!");
    		client.chatMessage(sid, 'Hello! Thank your for adding me as a friend ^^ - This is an automatically generated message by astaribot#1');
    community.postUserComment(sid, '+rep good mate');
        }
    });
    

    And now I dont know how I can do it that the Bot writes and comment on the users profile after accepting the friend request :/

×
×
  • Create New...