# blackbotlistapi

> API for https://blackbotlist.cf

Latest version **3.1.7** (published 2025-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install blackbotlistapi
pnpm add blackbotlistapi
yarn add blackbotlistapi
bun add blackbotlistapi
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.7 |
| Published | 2025-06-14 |
| First published | 2021-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kubilaytr |
| Maintainers | kubilaytr |
| Keywords | https://blackbotlist.cf/, blackbotlist.cf, blackbotlist, blackbotlistapi, black-bot-list, black-bot-list-api, blackbot, botlist, botlistapi, api, bot, list |

## Links

- npm: https://www.npmjs.com/package/blackbotlistapi
- npm.io page: https://npm.io/package/blackbotlistapi

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 3.1.7 (latest) — 2025-06-14
- 3.1.6 — 2023-06-21
- 3.1.5 — 2022-09-04
- 3.1.4 — 2022-08-31
- 3.1.3 — 2022-01-27
- 3.1.2 — 2022-01-27
- 3.1.1 — 2021-11-16
- 3.1.0 — 2021-11-15
- 3.0.2 — 2021-11-15
- 3.0.1 — 2021-11-15
- 3.0.0 — 2021-11-15
- 2.0.0 — 2021-09-20
- 1.1.0 — 2021-08-28
- 1.0.0 — 2021-08-27

## README

# Black Botlist API

> ⚠️ **THIS MODULE IS DEPRECATED / NOT IN USE ANYMORE!**  
> It was created to connect to a blacklist.cf API to check if a bot has received a vote.
> Use it for educational/demo purposes only. It will no longer be maintained.  

## Info <br>
[Go to the Black Botlist website](https://blackbotlist.cf/) <br>
[How to use](https://blackbotlist.cf/docs) <br>
[Discord server](https://discord.gg/cPe9A9vmaE) <br>
[Support Discord server](https://discord.gg/4Xpwwz6pgN) <br>

### Usage<br><br>

```js
const blackbotlist = require("blackbotlistapi");

blackbotlist.get("Botid", "UserID").catch(() => {}).then(result => {
  // You can change the result variable name
  if (result) {
    // If the user has voted
  }
})

blackbotlist.get("Botid", "UserID").catch(() => {}).then(result => {
  if (!result) {
    // If the user has NOT voted
  }
})

setInterval(function () {
  blackbotlist.webhook("Botid").catch(() => {}).then(result => {
    if (!result) return;
    // If someone voted for the bot
    console.log(result + " voted for the bot UwU");
  })
}, 5000); // Change the interval if it's repeating or not doing anything
```
## Example Code
```js
const blackbotlist = require("blackbotlistapi");

// Vote command
client.on('message', async msg => {
  if (msg.content === 'ping') {
    blackbotlist.get("Botid", msg.author.id).catch(() => {}).then(result => {
      if (!result) {
        msg.channel.send("You need to vote to use this command.");
      }
      if (result) {
        msg.channel.send("Thank you for voting!");
      }
    })
  }
});

// Webhook
client.on('ready', () => {
  setInterval(function () {
    blackbotlist.webhook("Botid").catch(() => {}).then(result => {
      if (!result) return;
      client.channels.cache.get("ChannelID").send(`UwU <@!${result}> just voted for the bot!`);
    })
  }, 1000);
});

```
#### To install
- ```npm i blackbotlistapi```
#### Getting an error? First try this in your terminal:
- ```npm i node-fetch@2.6.1```

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