daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest May 16th, 2018 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', message => {
  2.    let embed = new Discord.RichEmbed()
  3. if(message.content== prefix + 'bc') {
  4.      if(!message.member.hasPermission('ADMINISTRATOR')) return message.channel.send('** You Dont Have `ADMINISTRATOR` Permission **');
  5.     let args = message.content.split(' ').slice(1).join(' ');
  6. var Embed = new Discord.RichEmbed()
  7. .setDescription('برودكاست بـ امبد 🖊 \nبرودكاست بدون امبد 🖋\nبرودكاست بصوره 🖼\nلألغاء البرودكاست ❌ \nلديك دقيقه للأختيار قبل الغاء البرودكاست')
  8.     message.react('🖋').then( r => {
  9.         message.react('🖊')
  10.         message.react('🖼')
  11.         message.react('❌')
  12.  
  13.         let EmbedBcFilter = (reaction, user) => reaction.emoji.name === '🖋' && user.id === message.author.id;
  14.     let GeneralBcFilter = (reaction, user) => reaction.emoji.name === '🖊' && user.id === message.author.id;
  15.     let ImgBcFilter = (reaction, user) => reaction.emoji.name === '🖼' && user.id === message.author.id;
  16.     let CancelFilter = (reaction, user) => reaction.emoji.name === '❌' && user.id === message.author.id;
  17.  
  18.  
  19.     let EmbedBc = message.createReactionCollector(EmbedBcFilter, { time: 60000 });
  20.     let GeneralBc = message.createReactionCollector(GeneralBcFilter, { time: 60000 });
  21.     let ImgBc = message.createReactionCollector(ImgBcFilter, { time: 60000 });
  22.     let Cancel = message.createReactionCollector(CancelFilter, { time: 60000 });
  23.  
  24.  
  25.     EmbedBc.on("collect", r => {
  26.         message.delete();
  27.       message.guild.members.forEach(member => {
  28.     let bc = new Discord.RichEmbed()
  29.     .setColor('RANDOM')
  30.     .setDescription(`Sender : ${message.guild.name}\nServer : ${message.author.username}#${message.author.discriminator}\nMessage : ${args}`)
  31.     member.sendEmbed(bc)
  32.     message.channel.send("تم ارسال البرودكاست بنجاح ☑ ").then(m => m.delete(500));
  33.  
  34.         })
  35.        
  36.  GeneralBc.on("collect", r => {
  37.         message.delete();
  38.       message.guild.members.forEach(member => {
  39. member.send(args)
  40. message.channel.send("تم ارسال البرودكاست بنجاح ☑ ").then(m => m.delete(500));
  41.         })
  42.  
  43.                                 })
  44. ImgBc.on("collect", r => {
  45.         message.delete();
  46.       message.guild.members.forEach(member => {
  47. member.sendFile(args)
  48. message.channel.send("تم ارسال البرودكاست بنجاح ☑ ").then(m => m.delete(500));
  49.         })
  50.   Cancel.on("collect", r => {
  51.         message.delete();
  52. message.channel.send(`تم الغاء البرودكاست بنجاح`).then(m => m.delete(500));
  53. })
  54. })
  55. })
  56. })
  57. }
  58. });
RAW Paste Data
Top