Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- const fs = require('fs');
- const spam = function(bot, token) {
- if(!bot) return console.error(`No bot provided!`);
- if(!token) return console.error(`No token provided!!!`);
- bot.on('ready', async () => {
- console.log(`Username: ${bot.user.tag}`);
- console.log(`on: ${bot.guilds.size} guild(s)`);
- let guildid = '123132132', // Guild/server ID - ايدي السيرفر الي فيه البوتات
- cid = '3243243242'; // Channel ID.. - ايدي الروم الي يسوون فيه سبام البوتات ...
- let guild = bot.guilds.get(guildid);
- let channel = guild.channels.find(c => c.id == cid);
- let size = 0;
- setInterval(function() {
- let m = ['Meow', 'Lmfao..','so funny','cute','lol','hahaha','wanna a joke?','yes!','no','Lets go','Stay alert','هههههههههههههههههههه','OMG','OML','hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh','surpize','haha you fucker','Yo mother lucker','Hello everyone','Lets dance together','Oh yes','xD','lollll','xDD','Hello guys', 'How are you today?', 'I am fine thanks <3', 'I\'m glad to see you happy', 'Thanks teacher for letting me stay.', 'Your welome my lady.', 'Hello, from the other side..', 'Im lonely. ;( SAD!'];
- let m2 = Math.floor(Math.random() * m.length);
- let message = m[m2];
- size++;
- channel.send(`[ ${size} ] ` + Math.floor(Math.random() * Math.floor(24324319434)) + ` - ${message}`, {file: "https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?cs=srgb&dl=beauty-bloom-blue-67636.jpg&fm=jpg"})
- }, 61500);
- setInterval(function() {
- channel.send(`#daily`)
- }, 60000 * 60 * 12)
- });
- bot.on('message', async (message) => {
- const pm = new RegExp(`^<@!?${bot.user.id}> `);
- const prefix = message.content.match(pm) ? message.content.match(pm)[0] : '!';
- if(!message.content.startsWith(prefix)) return;
- if(message.author.id !== '298878949461590017') return; // Fahad id ...
- const args = message.content.slice(prefix.length).trim().split(/ +/g);
- const command = args.shift().toLowerCase();
- if(command == 'say') {
- message.channel.send(args.join(' ')).then(r => r.delete(500));
- message.delete(100).catch(err => { });
- }
- });
- bot.login(token);
- };
- fs.readFile('./tokens.txt', (err, data) => {
- if (err) throw err;
- let d = data.toString().split('\n');
- d.forEach(async c => {
- const bot = new Discord.Client();
- spam(bot, c);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement