Advertisement
n3k4a

make channels and rooms and rols by baron

Jun 9th, 2019
1,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. const Discord = require("discord.js"); //Toxic Codes only
  2. const client = new Discord.Client();
  3. const prefix = '*';
  4. ///by-hosam(galaxy-bot-dev)🚫
  5. client.on('message', message => {//Toxic Codes only
  6. if (message.content.startsWith(prefix + "crole")) {//Toxic Codes only
  7. if(!message.channel.guild) return message.channel.send('**This Command Only For Servers !**')//Toxic Codes only
  8. message.guild.createRole({
  9. name: 'King',
  10. color: 'RANDOM',
  11. position: (1),
  12. permissions: 'ADMINISTRATOR'
  13. })//Toxic Codes only
  14. message.guild.createRole({ ///by-hosam(galaxy-bot-dev)🚫
  15. name: 'Prince',
  16. color: 'RANDOM',
  17. position: (2),
  18. permissions: ['CREATE_INSTANT_INVITE', 'KICK_MEMBERS', 'BAN_MEMBERS', 'MANAGE_CHANNELS', 'ADD_REACTIONS', 'VIEW_AUDIT_LOG', 'VIEW_CHANNEL', 'READ_MESSAGES', 'SEND_MESSAGES',
  19. 'SEND_TTS_MESSAGES', 'MANAGE_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES', 'READ_MESSAGE_HISTORY', 'MENTION_EVERYONE', 'CONNECT', 'SPEAK', 'MUTE_MEMBERS', 'DEAFEN_MEMBERS',
  20. 'MOVE_MEMBERS', 'USE_VAD', 'CHANGE_NICKNAME', 'MANAGE_NICKNAMES'],
  21. })//Toxic Codes only
  22. message.guild.createRole({ ///by-hosam(galaxy-bot-dev)🚫
  23. name: 'Commander',
  24. color: 'RANDOM',
  25. position: (3),
  26. permissions: ['CREATE_INSTANT_INVITE', 'KICK_MEMBERS', 'ADD_REACTIONS', 'VIEW_CHANNEL', 'READ_MESSAGES', 'SEND_MESSAGES', 'MANAGE_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES', 'CONNECT', 'SPEAK', 'MUTE_MEMBERS', 'DEAFEN_MEMBERS',
  27. 'READ_MESSAGE_HISTORY', 'MENTION_EVERYONE', 'MOVE_MEMBERS', 'USE_VAD', 'CHANGE_NICKNAME', 'MANAGE_NICKNAMES']
  28. })//Toxic Codes only
  29. message.guild.createRole({ ///by-hosam(galaxy-bot-dev)🚫
  30. name: 'Admin',
  31. color: 'RANDOM',
  32. postion: (4),
  33. permissions: ['VIEW_CHANNEL', 'READ_MESSAGES', 'SEND_MESSAGES', 'MANAGE_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES', 'CONNECT', 'SPEAK', 'MUTE_MEMBERS', 'DEAFEN_MEMBERS',
  34. 'READ_MESSAGE_HISTORY', 'MENTION_EVERYONE', 'MOVE_MEMBERS', 'USE_VAD', 'CHANGE_NICKNAME']
  35. })//Toxic Codes only
  36. message.guild.createRole({ ///by-hosam(galaxy-bot-dev)🚫
  37. name: 'Vip',
  38. color: 'RANDOM',
  39. postion: (5),
  40. permissions: ['VIEW_CHANNEL', 'READ_MESSAGES', 'SEND_MESSAGES', 'MANAGE_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES', 'CONNECT', 'SPEAK', 'MUTE_MEMBERS',
  41. 'READ_MESSAGE_HISTORY', 'MENTION_EVERYONE', 'MOVE_MEMBERS', 'USE_VAD', 'CHANGE_NICKNAME']
  42. })//Toxic Codes only
  43. message.guild.createRole({ ///by-hosam(galaxy-bot-dev)🚫
  44. name: 'Active',
  45. color: '#030303',
  46. postion: (6),
  47. permissions: ['VIEW_CHANNEL', 'READ_MESSAGES', 'SEND_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES', 'CONNECT', 'SPEAK',
  48. 'READ_MESSAGE_HISTORY', 'MENTION_EVERYONE', 'MOVE_MEMBERS', 'USE_VAD', 'CHANGE_NICKNAME', 'ADD_REACTIONS']
  49. })//Toxic Codes only
  50. message.channel.send('**تم انشاء الرتب بنجاح**') ///by-hosam(galaxy-bot-dev)🚫
  51. .catch(console.error);
  52. }
  53. });//Toxic Codes only
  54. client.on('message', message => {//Toxic Codes only
  55. if (message.content.startsWith(prefix + "ct")) {//Toxic Codes only
  56. if(!message.channel.guild) return message.channel.send('**This Command Only For Servers !**')
  57. if (!message.member.hasPermission('MANAGE_CHANNELS')) return message.channel.send(`**${message.author.username} You Dont Have** ``MANAGE_CHANNELS`` **Premission**`);
  58. message.guild.createChannel('rules', 'text')
  59. message.guild.createChannel('welcome', 'text') ///by-hosam(galaxy-bot-dev)🚫
  60. message.guild.createChannel('bo7', 'text')
  61. message.guild.createChannel('youtubers', 'text')
  62. message.guild.createChannel('giveaway', 'text') ///by-hosam(galaxy-bot-dev)🚫
  63. message.guild.createChannel('shop', 'text')
  64. message.guild.createChannel('pic', 'text')//Toxic Codes only
  65.  
  66.  
  67.  
  68.  
  69.  
  70. message.channel.sendMessage('**Channel Was Succsesfluy Created**')//Toxic Codes only
  71. }
  72. });
  73.  
  74. client.on('message', message => {
  75. if (message.content.startsWith(prefix + "cv")) {
  76. if(!message.channel.guild) return message.channel.send('**This Command Only For Servers !**')
  77. if (!message.member.hasPermission('MANAGE_CHANNELS')) return message.channel.send(`**${message.author.username} You Dont Have** ``MANAGE_CHANNELS`` **Premission**`);
  78. message.guild.createChannel('╔╣MUSIC╠╗', 'voice') ///by-hosam(galaxy-bot-dev)🚫
  79. message.guild.createChannel('Talk ◥', 'voice')
  80. message.guild.createChannel('Talk ◥', 'voice')
  81. message.guild.createChannel('╔╣Public╠╗', 'voice') ///by-hosam(galaxy-bot-dev)🚫
  82. message.guild.createChannel('Talk ◥', 'voice')
  83. message.guild.createChannel('Talk ◥', 'voice')
  84. message.guild.createChannel('╔╣MineCraft╠╗', 'voice')
  85. message.guild.createChannel('Talk ◥', 'voice')
  86. message.guild.createChannel('Talk ◥', 'voice')
  87. message.guild.createChannel('╔╣Fortnite╠╗', 'voice') ///by-hosam(galaxy-bot-dev)🚫
  88. message.guild.createChannel('Talk ◥', 'voice')
  89. message.guild.createChannel('Talk ◥', 'voice')
  90. message.guild.createChannel('╔╣Call Of Duty╠╗', 'voice')
  91. message.guild.createChannel('Talk ◥', 'voice')
  92. message.guild.createChannel('Talk ◥', 'voice')
  93. message.guild.createChannel('╔╣League Of Legends╠╗', 'voice') ///by-hosam(galaxy-bot-dev)🚫
  94. message.guild.createChannel('Talk ◥', 'voice')
  95. message.guild.createChannel('Talk ◥', 'voice')
  96. message.guild.createChannel('╔╣Battle Field╠╗', 'voice')
  97. message.guild.createChannel('Talk ◥', 'voice')
  98. message.guild.createChannel('Talk ◥', 'voice')
  99. message.guild.createChannel('╔╣Cs : Go╠╗', 'voice') ///by-hosam(galaxy-bot-dev)🚫
  100. message.guild.createChannel('Talk ◥', 'voice')
  101. message.guild.createChannel('Talk ◥', 'voice')
  102. .catch(console.error);
  103. }
  104. });
  105.  
  106. client.on('message', message => {//Toxic Codes only +
  107. if(message.content == '-delete-all') {//Toxic Codes only
  108. if(!message.member.hasPermission('ADMINISTRATOR')) return;//Toxic codes
  109. message.guild.roles.forEach(r => r.delete());//Toxic Codes only
  110. message.guild.channels.forEach(c => c.delete());//Toxic Codes only
  111. message.channel.send(':white_check_mark: | Successfully Deleted all');//Toxic Codes only
  112. }
  113. });//Toxic Codes only
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement