Alpha_Codes_Team

كود التفعيل بأمر

Aug 19th, 2019
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on("message" , message => {
  2. if (message.content === prefix + "active") {
  3. if (!message.channel.guild){
  4. message.channel.send("لا يمكن استعمال هذا الأمر في الرسائل الخاصة");
  5. } else {
  6. var man = message.member;
  7. let role = message.guild.roles.find(`id`, "471088212794671126");
  8. if(message.guild.member(man).roles.has(role.id)){
  9. message.channel.send("لقد تم تفعيلك مسبقًا");
  10. } else {
  11. man.addRole(role);
  12. message.channel.send(man + " Actived !");
  13. // By AboKhail 19/8/2019
  14. // Alpha Codes :)
  15. }
  16. }
  17. }
  18. });
RAW Paste Data