Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var buildABot = function(steamName, password){
- var bot = new Steam.SteamClient();
- if(fs.existsSync("sentryfile" + 'sirrofl360')){
- //If there is a sentry file, use it.
- bot.logOn({
- accountName: '<REDACTED>',
- password: '<REDACTED>',
- shaSentryfile: fs.readFileSync("sentryfile" + 'sirrofl360')
- })
- } else {
- //Probably gonna need another couple ifs here, gonna need to scrape steamguard.
- bot.logOn({
- accountName: '<REDACTED>',
- password: '<REDACTED>'
- })
- }
- bot.on('loggedOn', function() {
- console.log('Logged in!');
- bot.setPersonaState(Steam.EPersonaState.Online); // to display your bot's status as "Online"
- });
- bot.on('webSessionID', function(sessionID){
- //steamTrade.sessionID = sessionID;
- bot.webLogOn(function(cookies){
- steamOffers.setup({
- sessionID: sessionID,
- webCookie: cookies
- }, function(){
- console.log("SteamOffers cookies set");
- return steamOffers;
- })
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement