Advertisement
X_KillerYT

تقديم

Dec 17th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', async rokz => {
  2.  
  3.     if(rokz.content.startsWith(prefix + "تقديم")) {
  4.  
  5.       let lang = '';
  6.  
  7.       let time = '';
  8.  
  9.       let expe = '';
  10.  
  11.       let fillter = m => m.author.id === rokz.author.id
  12.  
  13.       await rokz.channel.send("اسمك ؟").then(e => {
  14.  
  15.      rokz.channel.awaitMessages(fillter, { time: 60000, max: 1 })
  16.  
  17.      .then(co => {
  18.  
  19.        lang = co.first().content;
  20.  
  21.         co.first().delete();
  22.  
  23.  
  24.        e.edit(`عمرك ؟
  25. [${lang}]`)
  26.  
  27.        rokz.channel.awaitMessages(fillter, { time: 60000, max: 1 })
  28.  
  29.        .then(col => {
  30.  
  31.          time = col.first().content;
  32.  
  33.           col.first().delete();
  34.  
  35.  
  36.             e.edit(`ايش راح تبيع ؟
  37. [${time}]
  38. [${lang}]`)
  39.  
  40.             rokz.channel.awaitMessages(fillter, { time: 60000, max: 1 })
  41.  
  42.             .then(coll => {
  43.  
  44.               expe = coll.first().content;
  45.  
  46.                coll.first().delete();
  47.  
  48.  
  49.                e.edit(`جاري تقديمك...
  50. [${expe}]
  51. [${time}]
  52. [${lang}]`)
  53.  
  54.               let rokzz = rokz.guild.channels.find("name","✵》التقديمات")
  55.  
  56.               setTimeout(() => {
  57.  
  58.                 e.edit("تم التقديم")
  59.  
  60.               }, 3000)
  61.  
  62.               rokzz.send(`
  63. » االاسم : **${lang}**
  64. » العمر : **${time}**
  65. » الي بيبيعه : **${expe}**
  66. تم التقديم بواسطة: ${rokz.author}
  67. `).then(rokzzz => {
  68.  
  69.                   rokzzz.react(":CheckMark:")
  70.  
  71.                   rokzzz.react(":WrongMark:")
  72.  
  73.                 })
  74.  
  75.             })
  76.  
  77.        })
  78.  
  79.      })
  80.  
  81.    })
  82.  
  83.     }
  84.  
  85.   })
  86.  
  87.  
  88.  
  89.    
  90.  
  91.    
  92. client.on('message',async message => {
  93.  
  94. let mention = message.mentions.members.first();
  95.  
  96. let Room = client.channels.get('524212739212574743');
  97.  
  98. if(message.content.startsWith(prefix + "رفض")) {
  99.  
  100. if(message.guild.id !== '517018286492483586') return;
  101.  
  102.  if (!message.member.hasPermission("MANAGE_ROLES")) return message.reply("**للأسف ليس لديك صلاحية**").then(msg => msg.delete(5000));
  103.  
  104.  
  105. if(!mention) return message.reply("منشن شخص");
  106.  
  107.  
  108.  
  109. Room.send(`
  110. **» العضو :** ${mention}
  111. [ :x: ] :: لقد تم رفض العضو`);
  112.  
  113. }
  114.  
  115. });
  116.  
  117.  
  118.    
  119. client.on('message',async message => {
  120.  
  121. let mention = message.mentions.members.first();
  122.  
  123. let Room = client.channels.get('524212739212574743');
  124.  
  125. if(message.content.startsWith(prefix + "قبول")) {
  126.  
  127. if(message.guild.id !== '517018286492483586') return;
  128.  
  129.  if (!message.member.hasPermission("MANAGE_ROLES")) return message.reply("**للأسف ليس لديك صلاحية**").then(msg => msg.delete(5000));
  130.  
  131.  
  132. if(!mention) return message.reply("منشن شخص");
  133.  
  134.  
  135.  
  136. Room.send(`
  137. **» العضو :** ${mention}
  138. [ :white_check_mark: ] :: لقد تم قبول العضو `);
  139.  
  140. }
  141.  
  142. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement