captcha-for-discord
v1.0.0
Published
This package can be used for creating captcha straight from your discord bot
Downloads
11
Maintainers
Readme
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")
}
}