discord-captchabeta
v1.0.4
Published
error
Downloads
13
Readme
djs.captcha
What is this?
Have your users verify with a captcha using Discord Buttons on server join.
Installation
npm i djs.captcha
const Captcha = require('djs.captcha')
const captcha = new Captcha(client, {
roleID: 'Role ID Here',
channelID: 'Text Channel ID Here',
onFail: 'kick or ban'
});
Examples
const Discord = require("discord.js");
const client = new Discord.Client();
const Captcha = require('djs.captcha')
const captcha = new Captcha(client, {
roleID: 'Role ID Here',
channelID: 'Text Channel ID Here',
onFail: 'kick or ban'
});
client.login("token")
Events
You can see when a user has failed or completed a captcha whith these events
Captcha.on('success', (info) => {
console.log(info);
});
Captcha.on('failure', (info) => {
console.log(info);
});
Github
https://github.com/strange-glitch/djs.captcha