Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SteamUser = require('steam-user');
- const steamTotp = require('steam-totp');
- const SteamCommunity = require('steamcommunity')
- const TradeOfferManager = require('steam-tradeoffer-manager')
- const Prices = require('./prices.json');
- const config = require('./config.json');
- const client = new SteamUser();
- const community = new SteamCommunity();
- const manager = new TradeOfferManager ({
- })
- const logOnOptions = {
- accountName: config.username,
- password: config.password,
- twoFactorCode: steamTotp.generateAuthCode(config.sharedSecret)
- };
- client.logOn(logOnOptions);
- client.on('loggedOn', () => {
- console.log('Succesfully logged on.');
- client.setPersona(SteamUser.Steam.EPersonaState.Online);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement