SHARE
TWEET

Untitled

a guest Aug 25th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', message => {
  2.     if (message.content.startsWith(prefix+'host-eu')) {
  3.       var rank = "``Host EU``";
  4.   if(!message.channel.guild) return message.reply('This command only for servers');
  5.   let staff = message.guild.member(message.author).roles.find('name' , 'Host EU');
  6.   if(!staff) return message.reply(`You Don't have ${rank} Rank`)
  7.       let jscodes = message.guild.channels.find(`name`, "staff-chat");
  8.     if(!jscodes) return message.channel.send("I did not found the channel :x:");
  9.       let filter = m => m.author.id === message.author.id;
  10.       let thisMessage;
  11.       let thisFalse;
  12.       message.channel.send(':pencil: **| من فضلك اكتب الكود الأن... :pencil2: **').then(message => {
  13.  
  14.       message.channel.awaitMessages(filter, {
  15.         max: 1,
  16.         time: 90000,
  17.         errors: ['time']
  18.       })
  19.             .then(collected => {
  20.               collected.first().delete();
  21.               thisMessage = collected.first().content;
  22.               let boi4;
  23.               message.edit(':man_in_tuxedo: **| من فضلك اكتب اسمك الأن... :pencil2: **').then(message => {
  24.  
  25.                 message.channel.awaitMessages(filter, {
  26.                   max: 1,
  27.                   time: 90000,
  28.                   errors: ['time']
  29.                 })
  30.       .then(collected => {
  31.         collected.first().delete();
  32.         boi4 = collected.first().content;
  33.         let boi;
  34.         message.edit(':scroll: **| من فضلك اكتب وصف الكود الأن... :pencil2: **').then(message => {
  35.  
  36.             message.channel.awaitMessages(filter, {
  37.               max: 1,
  38.               time: 90000,
  39.               errors: ['time']
  40.             })
  41.             .then(collected => {
  42.               collected.first().delete();
  43.               boi = collected.first().content;
  44.               let boi2;
  45.               message.edit(':man_in_tuxedo: **| من فضلك اكتب من صنع هذا الكود الأن... :pencil2: **').then(message => {
  46.  
  47.                 message.channel.awaitMessages(filter, {
  48.                   max: 1,
  49.                   time: 90000,
  50.                   errors: ['time']
  51.                 })
  52.                 .then(collected => {
  53.                   collected.first().delete();
  54.                 boi2 = collected.first().content;
  55.         message.edit('**Are you sure you want to share it yes or no:shield:**');
  56.    message.channel.awaitMessages(response => response.content === 'yes' || 'no' && filter,{
  57.           max: 1,
  58.           time: 90000,
  59.           errors: ['time']
  60.         })
  61.         .then(collected => {
  62.           if(collected.first().content === 'no') {
  63.             message.delete();
  64.             message.delete();
  65.             thisFalse = false;
  66.           }
  67.           if(collected.first().content === 'yes') {
  68.             if(thisFalse === false) return;
  69.             message.edit('**Done :white_check_mark:**');
  70.             collected.first().delete();
  71.             jscodes.send(`@everyone
  72. Server: Europe
  73. ${thisMessage}
  74. **وصف الكود**:
  75. ${boi}
  76. **تم النشر بواسطة**:
  77. ${boi4}
  78. **المصدر / الشخص الذي صنع الكود**:
  79. ${boi2}
  80. `);
  81. }})
  82. })
  83. })
  84. })
  85. })
  86. })
  87. })
  88. })
  89. });
  90. };
  91. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top