gaber-elsayed

Invite Code (JS)

Dec 21st, 2019
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. client.on("message", function(message) {
  2. if (message.content.startsWith(prefix + "invite")) {
  3. let messageArgs = message.content
  4. .split(" ")
  5. .slice(1)
  6. .join(" ");
  7. let messageRPS = message.content
  8. .split(" ")
  9. .slice(2)
  10. .join(" ");
  11. let arrayRPS = ["**# - Rock**", "**# - Paper**", "**# - Scissors**"];
  12. let result = `${arrayRPS[Math.floor(Math.random() * arrayRPS.length)]}`;
  13. var RpsEmbed = new Discord.RichEmbed()
  14. .setAuthor(message.author.username)
  15. .setThumbnail(message.author.avatarURL)
  16. .setColor("RANDOM")
  17. .addField("الرجاء اختيار نوع جهازك", "Computer | Phone", false)
  18. .addField("Phone | تلفون", "📱", true)
  19. .addField("Computer | كمبيوتر", "🖥️", true)
  20. .setFooter("Earth Bot")
  21. message.channel.send(RpsEmbed).then(msg => {
  22. msg.react("📱");
  23. msg.react("🖥️")
  24. .then(() => msg.react("📱"))
  25. .then(() => msg.react("🖥️"))
  26. let reaction1Filter = (reaction, user) =>
  27. reaction.emoji.name === "📱" && user.id === message.author.id;
  28. let reaction2Filter = (reaction, user) =>
  29. reaction.emoji.name === "👑" && user.id === message.author.id;
  30. let reaction3Filter = (reaction, user) =>
  31. reaction.emoji.name === "🖥️" && user.id === message.author.id;
  32. let reaction4Filter = (reaction, user) =>
  33. reaction.emoji.name === "🖥️" && user.id === message.author.id;
  34. let reaction1 = msg.createReactionCollector(reaction1Filter, {
  35. time: 20000
  36. });
  37.  
  38. let reaction2 = msg.createReactionCollector(reaction2Filter, {
  39. time: 19000
  40. });
  41. let reaction3 = msg.createReactionCollector(reaction3Filter, {
  42. time: 18000
  43. });
  44. let reaction4 = msg.createReactionCollector(reaction4Filter, {
  45. time: 18000
  46. });
  47. reaction1.on("collect", r => {
  48. const embed = new Discord.RichEmbed()
  49. .setColor("RANDOM")
  50. .setThumbnail(client.user.avatarURL)
  51. .setAuthor(message.author.username, message.author.avatarURL)
  52. .setTitle("Click Here To Invite The Bot | اضغط هنا لدعوة البوت")
  53. .setURL(
  54. `https://discordapp.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=8&scope=bot`
  55. );
  56. message.author.send(`https://discordapp.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=8&scope=bot`);
  57. message.reply("تم ارسالك لينك دعوة بوت في خاص");
  58. });
  59. reaction2.on("collect", r => {
  60. const embed = new Discord.RichEmbed()
  61. .setThumbnail(
  62. "https://cdn.discordapp.com/attachments/553862087382925313/556036868492230667/logo-admin-png-4.png"
  63. )
  64. .setColor("#000000").setDescription(`
  65. :key:***__اوامر ادارية |" https://discord.gg/" __***:crown:
  66. **
  67. للأستفسار ادخلو سيرفر دعم الفني
  68. " https://discord.gg/"
  69. 『${prefix}bans ====> الاعضاء المبندين من سيرفرك
  70. 『${prefix}schannel ====> اضهار الشات المخفية
  71. 『${prefix}hchannel ====> اخفاء الشات
  72. 『${prefix}setlog ====> لصنع روم اللوج
  73. 『${prefix}server ====> يعرض لك معلومات عن السيرفر
  74. 『${prefix}movall ====> لسحب الجميع الى رومك
  75. 『${prefix}move ====> لسحب عضو الى روم صوتية
  76. 『${prefix}role @mention rolename ====> لأعطاء رتبة لعضو معين
  77. 『${prefix}role all rolename ====> لأعطاء رتبة للجميع
  78. 『${prefix}role humans rolename ====> لأعطاء رتبة للاشخاص فقط
  79. 『${prefix}role bots rolename ====> لأعطاء رتبة لجميع البوتات
  80. 『${prefix}members ====> حالات اعضاء السيرفر
  81. 『${prefix}clear ====> مسح الشات
  82. 『${prefix}mute @user <reason> ====> اعطاء العضو ميوت لازم رتبة <Muted>
  83. 『${prefix}unmute @user ====> لفك الميوت عن الشخص
  84. 『${prefix}kick @user <reason> ====> "هذا الامر الان مطفي موقتا"طرد الشخص من السرفر
  85. 『${prefix}ban @user <reason> ====> "هذا الامر مطفي موقتا"حضر الشخص من السيرفر
  86. 『${prefix}unban @user ====> لفك حضر الشخص من السيرفر
  87. 『${prefix}mutechannel ====> تقفيل الشات
  88. 『${prefix}unmutechannel ====> فتح الشات
  89. **
  90. `);
  91. message.author.sendEmbed(embed);
  92. message.reply("تم ارسالك بلخاص");
  93. });
  94. reaction3.on("collect", r => {
  95. const embed = new Discord.RichEmbed()
  96. .setColor("RANDOM")
  97. .setThumbnail(client.user.avatarURL)
  98. .setAuthor(message.author.username, message.author.avatarURL)
  99. .setTitle("Click Here To Invite The Bot")
  100. .setURL(
  101. `https://discordapp.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=8&scope=bot`
  102. );
  103. message.author.sendEmbed(embed);
  104. message.reply("تم ارسالك بلخاص");
  105. });
  106. reaction3.on("collect", r => {
  107. const embed = new Discord.RichEmbed().setColor("#000000")
  108. .setDescription(`
  109. 『=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.』
  110. 『=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.』
  111. `);
  112. });
  113. });
  114. }
  115. });
Advertisement
Add Comment
Please, Sign In to add comment