1.0.0 • Published 3 years ago

captcha-for-discord v1.0.0

Weekly downloads
79
License
MIT
Repository
-
Last release
3 years ago

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