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 client = new SteamUser();
- const logOnOptions = {
- accountName: ,
- password: ,
- twoFactorCode: SteamTotp.generateAuthCode()
- };
- client.logOn(logOnOptions);
- client.on('loggedOn', () => {
- console.log('Logged into Steam');
- client.setPersona(SteamUser.Steam.EPersonaState.Online);
- client.gamesPlayed(440);
- });
- client.on('emailInfo', (address, validated) => {
- let isValidated = "is"
- if (validated == false) {
- isValidated = "is not"
- }
- console.log("your email address is " + address + " and is " + isValidated + " validated by steam");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement