dapy

1.1.5 • Public • Published

djs.captcha

NPM version NPM downloads djs.captcha

NPM Banner

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

/dapy/

    Package Sidebar

    Install

    npm i dapy

    Weekly Downloads

    4

    Version

    1.1.5

    License

    ISC

    Unpacked Size

    17.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • norbel