1.1.5 • Published 2 years ago

dapy v1.1.5

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.1.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago