SHARE
TWEET

Untitled

a guest Jun 16th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', async msg => {
  2.     var prefix = "+";
  3.     var user = msg.author;
  4.             var a = msg.guild.roles.find("name", 'عضو');
  5.         if(!a){
  6.         a = await msg.guild.createRole({
  7.           name: "عضو",
  8.           color: "#ffffff",
  9.           permissions:[]
  10.         })
  11.        
  12.         }
  13.        
  14.  
  15.         if (msg.content.startsWith(prefix +'provyourself')) {
  16.  
  17.         if(!msg.channel.guild) return msg.channel.send('**هذا الأمر فقط للسيرفرات**').then(m => m.delete(5000));
  18. msg.channel.send(`
  19. **@here
  20. لاتبات نفسك اضغط على ☑
  21.  
  22. ```اتبت نفسك```**
  23.  
  24. **<@${msg.author.id}>`).then(res => {    
  25.      res.react('☑').then(r=>{    
  26.  
  27.     let aaa = (reaction, user) => reaction.emoji.name === '☑' && user.id === msg.author.id;    
  28.    
  29.     let aa = res.createReactionCollector(aaa, { maxMatches:1 , time: 20000 , });
  30.    
  31. aa.on("collect", r => {
  32.     msg.guild.member(user.id).addRole(a);
  33.     msg.channel.send('`تم اعطائك رتبة للعبة Agar`');
  34.     msg.delete();
  35.     })
  36.  
  37. cc.on("collect", r => {
  38.     msg.delete();
  39. })
  40.      
  41.      })
  42.      }
  43.      });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top