Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var admin = 'admin steamid64 ex. - 76561198206679023';
- var authCode = 'when you run bot first time, leave this field empty. when you run bot, close the .exe in mail you will get confirmation code so insert it here';
- var globalSessionID;
- var Steam = require('steam');
- var steamClient = new Steam.SteamClient();
- var steamUser = new Steam.SteamUser(steamClient);
- steamClient.on('debug', console.log);
- steamClient.connect();
- console.log('Laczenie!');
- steamClient.on('connected', function() {
- console.log('Logowanie!');
- steamUser.logOn({
- account_name: 'login',
- password: 'haslo'
- });
- });
- console.log('Niby zalogowano!');
- steamClient.on('webSessionID', function(sessionID) {
- globalSessionID = sessionID;
- console.log("Napisz sesje! ;)");
- console.log(globalSessionID);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement