Advertisement
gaber-elsayed

كود تخمين الاماكن

Oct 9th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. client.on('message', (message) => {
  2.  
  3. if(message.content.startsWith(prefix+"صور")){
  4. const emojiss = {
  5. "true" : `🔵 ┃`,
  6. "false" : `🔴 ┃`
  7. }
  8. var x = [
  9. {a:"https://lh5.googleusercontent.com/p/AF1QipOBNqzRaF_qb5EEgVzevFyaeqH7YjghNKCUfBt1=w430-h240-k-no",b:"تاج محل"},
  10. {a:"https://lh5.googleusercontent.com/p/AF1QipOIiCzQDLjA0IXSNmVI8DTn-hJZAaeh7eTH2QW_=w426-h240-k-no",b:"شلالات نياجرا"},
  11. {a:"https://lh5.googleusercontent.com/proxy/9KFhRXn1ErU1c0Ql21SVaEfzVmuSUF4A5Yvv-ve_-nYDnSDeawRzyOdgs0r6nrcc4dA7JnSAIsY34iu3CtzAsawqJWYtk8C3oRZwMHmRKmHxkulFyUnXkA2fuTbqBm7muk4p1QboYetDRb2Prr4I446uESR6Uw=w408-h283-k-no",b:"بيت الابيض"},
  12. {a:"https://lh5.googleusercontent.com/p/AF1QipMAyMeLGtzHJXdo0AQ3g9LYhcY2g6E1uqJG-mOM=w408-h262-k-no",b:"سور الصين"},
  13. {a:"https://lh5.googleusercontent.com/p/AF1QipMOrP0_FKO5c-3ZpVa9YoV2mC1n763S9xNJsovl=w408-h289-k-no",b:"نهر النيل"},
  14. {a:"https://lh5.googleusercontent.com/p/AF1QipPSR3D1ALnJnYFCpm-VqQs_nfSQldSkNKSrKPQm=w507-h240-k-no",b:"الزقورة"},
  15. ];
  16. var x3 = Math.floor(Math.random()*x.length)
  17. message.channel.send(new Discord.MessageEmbed()
  18. .setTitle("**قم بكتابه اسم المكان الموجود في الصورة**")
  19. .setColor(message.member.displayHexColor)
  20. .setImage(x[x3].a)
  21. .setDescription("**لديك 20 ثانية للأجابه ⏲**")
  22. .setFooter(`حقوق توكسك كودز 😏`,"https://cdn.discordapp.com/icons/532970094477836298/a_656889373a56370bffb082323cda48e4.gif.cache.cache.size=1024")
  23. ).then(msgg=> {
  24. var c = message.channel.awaitMessages(msg => msg.content == x[x3].b && !msg.author.bot, {
  25. max : 1,
  26. time : 20000,
  27. errors : ['time']
  28. })
  29. c.catch(() => {
  30. return message.channel.send(`**${emojiss.false} لقد انتهى الوقت ولم يقم أحد بالأجابة بشكل صحيح **`)
  31. })
  32.  
  33. c.then((collected)=> {
  34. message.channel.send(`**${emojiss.true} مبروك لقد قمت بكتابة الاجايه الصحيحه ${collected.first().author.username}**`);
  35. })
  36. })
  37. }
  38. }); //Shadow Hussein
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement