Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env node
- const https = require('https');
- var irc = require('irc');
- var _ = require("underscore");
- const faker = require('faker/locale/en');
- const fakeres = require('faker/locale/es');
- var interval = 10000;
- function makeid() {
- var text = "";
- var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- for (var i = 0; i < 2; i++)
- text += possible.charAt(Math.floor(Math.random() * possible.length));
- return text;
- }
- function numberid() {
- var text = "";
- var possible = "0123456789";
- for (var i = 0; i < 1; i++)
- text += possible.charAt(Math.floor(Math.random() * possible.length));
- return text;
- }
- var config = {
- botName: faker.name.firstName(),
- target: "Hikikmori98",
- message: faker.lorem.sentence(nb_words = 3) + " #fobia-social by Enrike45"
- }
- var targets = [
- 'nusia','win-stats','vviridiana','storm^','spoilers','singularidad','am_40','reverie','pensativo','pececito','pastafari','netman','lobosolitario','laportazos','kleoplanta','itsallrightma','giorgione','erion','cristiana434','contraindicada','bicicleta','angel2',
- ]
- targets.push('AM_40')
- var opts = {
- debug: true,
- userName: config.botName,
- realName: config.botName,
- }
- for (let index = 0; index < 1; index++) {
- spam();
- }
- // var MyVar = setInterval(spam, 1000);
- async function spam() {
- let bot;
- try {
- // var bot = new irc.Client('irc.chathispano.com', config.botName + numberid(), opts);
- bot = new irc.Client('irc.chathispano.com', 'Brenda_' + faker.random.number(999), opts);
- // bot = new irc.Client('irc.chathispano.com', 'atrox78:Atrox78Atrox78', opts);
- }
- catch (e) { console.log(e); }
- bot.addListener('error', function (message) {
- console.error('ERROR: %s: %s', message.command, message.args.join(' '));
- });
- // setTimeout(async function () {
- // await bot.say(config.target, config.message);
- // // await bot.say("mujerconalma", config.message);
- // await bot.disconnect();
- // }, 2000);
- bot.addListener('registered', function (message) {
- // for (let index = 0; index < targets.length; index++) {
- // bot.say(targets[index], config.message);
- // }
- targets.forEach(function (element, index) {
- // ENTREN #FOBIA-SOCIAL @Polilla
- bot.say(element,"#fobia-social");
- // bot.action(element, faker.lorem.sentence(nb_words = 4) + " #fobia-social")
- // bot.send('notice', element, "@Hazel la mejor mod del chat");
- });
- bot.disconnect("bye", () => {
- spam();
- });
- });
- }
- function delay(seconds) {
- var x = 0;
- setTimeout(function () {
- if (x) {
- return undefined;
- }
- x++;
- }, seconds * 1000);
- }
- // Usage!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement