discordjs-module
v1.0.38
Published
For install this module type the command next in your console :
Downloads
7
Readme
Author: kiritothereal
Installation
For install this module type the command next in your console :
npm i discordjs-module
Feature
Antiraid
Dans votre event guildMemberAdd:
const djssimply = require("discordjs-module")
client.on("guildMemberAdd", async(member) => {
const atiraid = new djssimply.Antiraid()
.setMember(member)
.setTextMember(`Vous avez été kick car le mode antiraid est activé !`)
await antiraid.toAntiraid();
})
Captcha
Dans votre event guildMemberAdd:
const djssimply = require("discordjs-module")
client.on("guildMemberAdd", async(member) => {
const setCaptcha = new djs.Captcha({
member: member,//The member to fetch!
kickMS: "1m",//The time to the captcha after the kick!
sucess: "You have succeeded the captcha!",//The sentence when the captcha will be succeed!
failedMS: "You have been kicked reason: the captcha was not done in time!",//The sentence when the captcha will be not done in time!
failed: "Too bad!",//The sentence when the captcha will be failed!
launch: "Please verify the captcha!", //The sentence when the captcha will be launched!
channel: interaction.channel, //The channel to send the captcha!
traceColor: "red", //The Trace color of the image!
colorCaptcha: "blue" //The Text color of the image!
});
await setCaptcha.toSend();
})
setStatus
Example:
const djssimply = require("discordjs-module");
const setStatus = new djssimply.setStatus()
.setActivity("Streaming")
.setUrl("https://www.twitch.tv/blxst_kirito")
.setBot(bot)
.setPresence("online")
.setStatus("test")
await setStatus.toSetStatus();
return message.reply("Status changé !");
Commands
ServeurInfo
const servInfo = new djs.serveurInfo({
guild: interaction.guild.id, //Your guild id to fetch!
message: interaction, //The message or interaction object to send the message!
bot: interaction.client //Your client object (bot) for get the guild!
});
await servInfo.toSend();