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 community = new SteamCommunity ();
- const client = new SteamUser();
- var antispam = 0;
- var banid = 0;
- var timerban = 60;
- var avastats = 0;
- var comstats = 0;
- var invblock = 0;
- var invgame = 0;
- var newfriend = 0;
- var spamik = 0;
- var n1;
- var osh=0;
- var SteamID = require('steamid');
- var sid = new SteamID('76561198149012500'); //steamid jertva
- var bid = new SteamID('76561198121188476'); //outo steamid
- var vid = new SteamID('76561198149012500');//vladid
- var did = new SteamID('76561198193076493');//deadfrog
- function spamtimer() { //when called, it will reset
- spam = 0;
- }
- function spamcd() { //when called, it will reset
- if (spamik = 1 ) {
- community.getSteamUser(sid, function(ERR, USER) {
- if (ERR) {
- console.log("## An error occurred while getting user profile: " + ERR);
- } else {
- setTimeout(function () { USER.comment('Sieg outo!', (ERR) => {
- if (ERR) {
- osh = osh + 1;
- client.chatMessage(bid, "osh=" + osh);
- console.log("## An error occurred while commenting on user profile: " + ERR);
- } else {
- client.chatMessage(bid, "!say qq");
- comstats = comstats + 1;
- console.log('comment was posted ' + comstats );
- };
- }); } , 200);
- USER.comment('<3', (ERR) => {
- if (ERR) {
- osh = osh + 1;
- client.chatMessage(bid, "osh=" + osh);
- console.log("## An error occurred while commenting on user profile: " + ERR);
- } else {
- comstats = comstats + 1;
- client.chatMessage(bid, "!comstats=" + comstats);
- console.log('comment was posted ' + comstats );
- };
- });
- }
- });
- };
- }
- require('events').EventEmitter.defaultMaxListeners = 150;
- const logOnOptions = {
- accountName: 'sosipisos2',
- password: '14881337',
- };
- client.logOn(logOnOptions);
- client.on('loggedOn', () => {
- console.log('Logged into Steam');
- client.setPersona(SteamUser.Steam.EPersonaState.Online);
- });
- client.on('webSession', function(sessionID, cookies) {
- community.setCookies(cookies);
- });
- setInterval(spamtimer, 60000);
- setInterval(spamcd, 120000);
- client.on('friendMessage', function(steamID, message) {
- if(message.indexOf("!say ") === 0) {
- var n = (message.replace(/^!say ?/, ""));
- client.chatMessage(steamID, "" + n);
- }
- });
- client.on('friendMessage', function(steamID, message, name) {
- if(message.indexOf("!comment1488 ") === 0) {
- var n1 = (message.replace(/^!comment1488 ?/, ""));
- community.getSteamUser(steamID, function(ERR, USER) {
- if (ERR) {
- client.chatMessage(steamID, "Error. Pls check privacy profile/comments.");
- console.log("## An error occurred while getting user profile: " + ERR);
- } else {
- USER.comment(n1, (ERR) => {
- if (ERR) {
- client.chatMessage(steamID, "Error. Pls check privacy profile/comments.Or try later.");
- console.log("## An error occurred while commenting on user profile: " + ERR);
- } else {
- console.log('comment was posted ' + steamID + ' ' + USER.name);
- client.chatMessage(steamID, "Gotovo :ccVeryHappy:");
- comstats = comstats + 1;
- }
- });
- }
- });
- };
- });
- client.on('friendMessage', function(steamID, message, name) {
- if(message == "!commentspam") {
- client.chatMessage(steamID, "!say !comment1488 node.js forever.");
- client.chatMessage(steamID, "!say !comment1488 node.js forever.");
- client.chatMessage(steamID, "!say !comment1488 node.js forever.");
- client.chatMessage(steamID, "!say !comment1488 node.js forever.");
- client.chatMessage(steamID, "!say !comment1488 node.js forever.");
- client.chatMessage(steamID, "!say !comment1488 node.js forever.");
- };
- });
- client.on('friendMessage', function(steamID, message, name) {
- if(message == "!stopspam") {
- client.chatMessage(steamID, "Done.");
- process.exit(-1);
- }
- });
- client.on('friendMessage', function(steamID, message, name) {
- if(message == "zzz" && comstats == 60 && comstats == 61 && comstats == 62 && osh == 3 && osh == 4 ) {
- client.chatMessage(sid, "stop me pls. Write !stopspam");
- process.exit(-1);
- }
- });
- client.on('friendMessage', function(steamID, message, name) {
- if(message == "qq" ) {
- client.chatMessage(sid, 'osh=' + osh);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement