1.0.4 • Published 2 years ago

discord-captchabeta v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago