@chrysthopher/captchajs
v1.0.1013-beta
Published
``` ══════════ ◖◍◗ ══════════ ● Module made by MrChrys ○ API made by MrChrys
Downloads
18
Readme
══════════ ◖◍◗ ══════════
● Module made by MrChrys
○ API made by MrChrys
> Thanks for reading <
══════════ ◖◍◗ ══════════
CaptchaJS - Quick documentation
Installation
npm i @chrysthopher/captchajs
How to use
const { Generate } = require("@chrysthopher/captchajs")
Generate(6).then(output => output) // Change "6" to the length of the captcha
//Output: {text: "random text", img: buffer json}
Discord example
const { Custom } = require("@chrysthopher/captchajs")
const captcha = Custom("Not a robot")
captcha.then(a => a.img).then(img => {
message.reply({
files: [new discord.MessageAttachment(img, "captcha.png")]
})
})