Advertisement
Guest User

Color By | 7MD : Ghost

a guest
Jun 13th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1.  
  2. client.on('message', message => {
  3. if (message.content.startsWith("الوان")) {
  4. var mentionned = message.mentions.users.first(); // Alpha Codes Ghost
  5. var mentionavatar;
  6. if(mentionned){
  7. var mentionavatar = mentionned;
  8. } else {
  9. var mentionavatar = message.author;
  10.  
  11. }
  12. let bot; // Alpha Codes Ghost
  13. if(message.author.bot) {
  14. bot = 'Bot'
  15. } else {
  16. bot = 'User'
  17. }
  18. var LastCode = new Discord.RichEmbed()
  19. .setColor('RANDOM')
  20. .setImage('https://cdn.discordapp.com/attachments/509828790944399365/523203407146778624/colors.png')
  21. message.channel.sendEmbed(LastCode);
  22. }
  23. });
  24.  
  25. client.on('message', message = {
  26. let args = message.content.split(' ').slice(1);
  27. if(message.content.split(' ')[0] == 'لون'){ // Alpha Codes Ghost
  28. const embedd = new Discord.RichEmbed()
  29. .setFooter('Requested by '+message.author.username, message.author.avatarURL)
  30. .setDescription(`لا يوجد لون بهذا الأسم x `)
  31. .setColor(`ff0000`)
  32.  
  33. if(!isNaN(args) && args.length 0)
  34.  
  35.  
  36. if (!(message.guild.roles.find(name,`${args}`))) return message.channel.sendEmbed(embedd); // Alpha Codes Ghost
  37.  
  38.  
  39. var a = message.guild.roles.find(name,`${args}`)
  40. if(!a)return;
  41. const embed = new Discord.RichEmbed()
  42.  
  43. .setFooter('Requested by '+message.author.username, message.author.avatarURL) // Alpha Codes Ghost
  44. .setDescription(`Done , تم تغير لونك . white_check_mark `)
  45.  
  46. .setColor(`${a.hexColor}`)
  47. message.channel.sendEmbed(embed);
  48. if (!args)return;
  49. setInterval(function(){})
  50. let count = 0;
  51. let ecount = 0;
  52. for(let x = 1; x 201; x++){
  53.  
  54. message.member.removeRole(message.guild.roles.find(name,`${x}`)) // Alpha Codes Ghost
  55.  
  56. }
  57. message.member.addRole(message.guild.roles.find(name,`${args}`));
  58.  
  59.  
  60. }
  61. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement