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 SteamCommunity = require('steamcommunity');
- const TradeOfferManager = require('steam-tradeoffer-manager');
- const community = new SteamCommunity();
- const manager = new TradeOfferManager ({
- steam: client,
- community: community,
- language: 'en'
- });
- const config = require('./config.json');
- const logOnOptions = {
- accountName: config.username,
- password: config.password,
- twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret)
- };
- const Messages = {
- Msg:{
- unknown: ' ',
- acceptedFriend: 'Heeeyyyy! Thanks for adding :) SPAM = AUTOBLOCK',
- declinedMsg: ' '
- },
- };
- const commands = {
- cmd:{
- '!author': 'TikeN',
- '!commands': 'hey! nothing here!'
- }
- };
- const editables = {
- ownerID: '76561198091951744',
- adminID: ['76561198091951744']
- }
- client.logOn(logOnOptions);
- client.on('loggedOn', () => {
- console.log('Zalogowano do T-BOTA!');
- client.setPersona(SteamUser.Steam.EPersonaState.Online);
- client.gamesPlayed(["NOTHING ;)"]); <---------------- tu gierka
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement