Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. client.on('message', async message => {
  2. if(message.content.startsWith(prefix + "sharejs")) {
  3. await message.channel.send("**:writing_hand: ارسل الكود الان **").then(e => {
  4. let filter = m => m.author.id === message.author.id
  5. let lan = '';
  6. let md = '';
  7. let br = '';
  8. let chaLan = message.channel.awaitMessages(filter, { max: 1, time: 40000, errors: ['time'] })
  9. .then(collected => {
  10. lan = collected.first().content
  11. collected.first().delete()
  12. e.edit(`**:writing_hand: اكتب وصف الكود الان**`)
  13. let chaMd = message.channel.awaitMessages(filter, { max: 1, time: 40000, errors: ['time'] })
  14. .then(co => {
  15. md = co.first().content
  16. co.first().delete()
  17. e.edit(`**:writing_hand: ارسل المصدر او صانع الكود**`)
  18. let br = message.channel.awaitMessages(filter, { max: 1, time: 40000, errors: ['time'] })
  19. .then(col => {
  20. br = col.first().content
  21. col.first().delete()
  22. e.edit("**جاري النشر ...**").then(b => {
  23. setTimeout(() => {
  24. b.edit(`**تم النشر بنجاح**`)
  25. },2000);
  26. let gg = message.guild.channels.find('name', 'codes-js')
  27. if(!gg) return message.reply('لا يوجد روم باسم codes-js')
  28. if(gg) {
  29. gg.send(`
  30. @everyone | @here
  31. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  32. StarCodes© :arrow_down:
  33. ${lan}
  34.  
  35. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  36.  
  37. **وصف الكود:** ${md}
  38. **تم النشر بواسطة:** ${message.author.tag} With ID ${message.author.id}
  39. **المصدر / الشخص يلي صنع الكود:** ${br}
  40.  
  41.  
  42.  
  43.  
  44.  
  45. `)
  46. }
  47. }
  48. )}
  49. )}
  50. )}
  51. )}
  52. )}
  53. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement