Advertisement
Guest User

Fahad

a guest
Jan 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. const Discord = require('discord.js');
  2. const fs = require('fs');
  3. const spam = function(bot, token) {
  4. if(!bot) return console.error(`No bot provided!`);
  5. if(!token) return console.error(`No token provided!!!`);
  6. bot.on('ready', async () => {
  7. console.log(`Username: ${bot.user.tag}`);
  8. console.log(`on: ${bot.guilds.size} guild(s)`);
  9. let guildid = '123132132', // Guild/server ID - ايدي السيرفر الي فيه البوتات
  10. cid = '3243243242'; // Channel ID.. - ايدي الروم الي يسوون فيه سبام البوتات ...
  11. let guild = bot.guilds.get(guildid);
  12. let channel = guild.channels.find(c => c.id == cid);
  13. let size = 0;
  14. setInterval(function() {
  15. 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!'];
  16. let m2 = Math.floor(Math.random() * m.length);
  17. let message = m[m2];
  18. size++;
  19. 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"})
  20. }, 61500);
  21. setInterval(function() {
  22. channel.send(`#daily`)
  23. }, 60000 * 60 * 12)
  24. });
  25.  
  26. bot.on('message', async (message) => {
  27. const pm = new RegExp(`^<@!?${bot.user.id}> `);
  28. const prefix = message.content.match(pm) ? message.content.match(pm)[0] : '!';
  29. if(!message.content.startsWith(prefix)) return;
  30. if(message.author.id !== '298878949461590017') return; // Fahad id ...
  31. const args = message.content.slice(prefix.length).trim().split(/ +/g);
  32. const command = args.shift().toLowerCase();
  33.  
  34. if(command == 'say') {
  35. message.channel.send(args.join(' ')).then(r => r.delete(500));
  36. message.delete(100).catch(err => { });
  37. }
  38. });
  39.  
  40. bot.login(token);
  41. };
  42.  
  43. fs.readFile('./tokens.txt', (err, data) => {
  44. if (err) throw err;
  45. let d = data.toString().split('\n');
  46. d.forEach(async c => {
  47. const bot = new Discord.Client();
  48. spam(bot, c);
  49. });
  50. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement