npm.io
1.0.0 • Published 5 years ago

captcha-for-discord

Licence
MIT
Version
1.0.0
Deps
3
Size
9 kB
Vulns
23
Weekly
0

About Discord-captcha

This package can be used for creating captcha straight from your discord bot

Installation

npm i discord-captcha

Methods

gen

Use this in the guildMemberAdd event aswell as a command(in case a user fails)

const captcha = require('discord-captcha')
<client>.on('guildMemberAdd', member => {
await captcha.gen(member, "role to be assigned id")
})

Command

const captcha = require('discord-captcha')
module.exports = {
name: "verify",
description: "Make an captcha",
callback async(client, message, args) {
await captcha.gen(member, "role to be assigned id")
}
}

Support Server

Keywords