# probot-captcha

> generate probot captcha image

Latest version **1.0.3** (published 2022-06-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install probot-captcha
pnpm add probot-captcha
yarn add probot-captcha
bun add probot-captcha
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-06-04 |
| First published | 2022-06-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 55.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Redix |
| Maintainers | redix_0 |
| Keywords | probot, captcha, probot-captcha, bot, discordcaptcha |

## Links

- npm: https://www.npmjs.com/package/probot-captcha
- Repository: https://github.com/redix0/probot-captcha
- Homepage: https://github.com/redix0/probot-captcha#readme
- Issues: https://github.com/redix0/probot-captcha/issues
- npm.io page: https://npm.io/package/probot-captcha

## Recent versions

- 1.0.3 (latest) — 2022-06-04
- 1.0.2 — 2022-06-04
- 1.0.1 — 2022-06-03
- 1.0.0 — 2022-06-03

## README

## What is probot-captcha ?
Package that can generate Probot captcha .
![image](image.png)
## Installation
```
npm install probot-captcha
```

## Usage
Generate Captcha With Random Numbers :
```js
let generateCaptcha = require('probot-captcha');

client.on('messageCreate', async message => {
    if (!message.guild) return;
    if (message.author.bot) return;
    if (message.content.toLowerCase().startsWith('captcha')) {
    let cap = await generateCaptcha() // Must be awaited
    message.reply({files: [cap.captcha]})
    }
})
```
Generate Captcha With Custom String :
```js
let generateCaptcha = require('probot-captcha');

client.on('messageCreate', async message => {
    if (!message.guild) return;
    if (message.author.bot) return;
    if (message.content.toLowerCase().startsWith('captcha')) {
    let cap = await generateCaptcha('12345') // Must be awaited
    message.reply({files: [cap.captcha]})
    }
})
```

## Opject
```js
let generateCaptcha = require('probot-captcha');
console.log(await generateCaptcha('12345'))
// => { captcha: { name: "captcha.png", attachment: buffer }, code: '12345' }
```

## Links
[Support Server](https://discord.gg/holy-s)

---
_Source: https://npm.io/package/probot-captcha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
