# @dbleu/node

> The node.js library for the discord-botlist.eu HTTP api

Latest version **1.0.0** (published 2021-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dbleu/node
pnpm add @dbleu/node
yarn add @dbleu/node
bun add @dbleu/node
```

## 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.0 |
| Published | 2021-08-02 |
| First published | 2021-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | dbleu |
| Maintainers | flamexdev, lptp1 |
| Keywords | discord, botlist, api, dbleu, HTTP |

## Links

- npm: https://www.npmjs.com/package/@dbleu/node
- Repository: https://github.com/DiscordBotlistEU/node-library
- Homepage: https://github.com/DiscordBotlistEU/node-library#readme
- Issues: https://github.com/DiscordBotlistEU/node-library/issues
- npm.io page: https://npm.io/package/@dbleu/node

## Dependencies (2)

- [discord.js](https://npm.io/package/discord.js.md) ^12.5.3
- [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

- 1.0.0 (latest) — 2021-08-02

## README

<h1 align="center">discord-botlist.eu api</h1>
<br />
Welcome 👋 <br />
This package offers you a more user friendly and easier way to interact with the discord-botlist.eu HTTP api. It's made by their developer.

## Install
```
npm i @dbleu/node
```

## Getting started
```JS
const API = require("@dbleu/node")
const dbleu = new API("Your API-Token")


// Get an array with all dates when the bot was voted for
dbleu.getVotes().then(votes => {
  console.log(votes)
})

// Get the current information about the bot
dbleu.ping().then(data => {
  console.log(data)
})

// Update the bot stats
dbleu.updateStats(serverCount).then(data => {
  console.log(data)
})
```

---

`.getVotes()` <br />
| Parameter | Type |
| --- | --- |
| _none_ | _none_ |

> `Promise<Array>`

---

`.ping()` <br />
| Parameter | Type |
| --- | --- |
| _none_ | _none_ |

> <code>Promise<<a href="https://github.com/DiscordBotlistEU/node-library/blob/main/src/structures/bot.js">Bot</a>></code>

---

`.updateStats(serverCount)` <br />
| Parameter | Type |
| --- | --- |
| serverCount |`Number` or `string` |

> ```
> {
>   "updated": Array<string>,
>   "bot": Bot
> }
> ```
[Bot](https://github.com/DiscordBotlistEU/node-library/blob/main/src/structures/bot.js)

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