https://github.com/queaxtra/captchaxt
A CAPTCHA module made for Discord bot projects.
https://github.com/queaxtra/captchaxt
captcha captcha-easy dc discord discord-bot discord-module module npm npm-module simple-captcha
Last synced: 2 months ago
JSON representation
A CAPTCHA module made for Discord bot projects.
- Host: GitHub
- URL: https://github.com/queaxtra/captchaxt
- Owner: Queaxtra
- License: mit
- Created: 2023-09-22T13:25:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-24T12:06:34.000Z (almost 3 years ago)
- Last Synced: 2025-08-31T23:22:55.761Z (10 months ago)
- Topics: captcha, captcha-easy, dc, discord, discord-bot, discord-module, module, npm, npm-module, simple-captcha
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/captchaxt
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# captchaxt
A CAPTCHA module made for Discord bot projects.
## ✨ Updates
- Canvas option has been added; with this option, you can turn the CAPTCHA codes you create into a picture and personalize them as you wish.
- Minor bugs fixed.
## 🛠 Installation
You can download the module using NPM or PNPM.
`npm i captchaxt` | `pnpm i captchaxt`
## 📁 Usage
- Creating a simple CAPTCHA;
```js
const captchaxt = require('captchaxt');
captchaxt.createCaptcha({
length: 10,
type: 'string', // or number, default: string
uppercase: true,
canvasOptions: {
enabled: true,
textColor: 'white', // red, black, blue etc.
backgroundColor: 'transparent', // gray, red, green etc.
width: 1000,
height: 500
}
}).then(buffer => {
console.log(buffer);
});
```

- Creating a simple math CAPTCHA.
```js
const captchaxt = require('captchaxt');
captchaxt.mathCaptcha({
level: "easy" // or medium, hard
}).then(captcha => {
console.log(captcha);
})
```

- Creating a simple question-answer CAPTCHA.
```js
const captchaxt = require('captchaxt');
captchaxt.answerCaptcha().then(captcha => {
console.log(captcha);
})
```

## ✨ Note
Please contact us if you have encountered a bug or error.
https://t.me/unoxdevs