# voidbots

> An official module for interacting with the voidbots.net API

Latest version **2.6.3** (published 2021-10-30) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.6.3 |
| Published | 2021-10-30 |
| First published | 2020-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | DanPlayz |
| Maintainers | danplayz0, ashmw |

## Links

- npm: https://www.npmjs.com/package/voidbots
- Repository: https://github.com/Void-Bots/npm
- Homepage: https://docs.voidbots.net
- Issues: https://github.com/Void-Bots/npm/issues
- npm.io page: https://npm.io/package/voidbots

## Dependencies (3)

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

## Recent versions

- 2.6.3 (latest) — 2021-10-30
- 2.6.2 — 2021-07-10
- 2.6.1 — 2021-07-09
- 2.6.0 — 2021-04-18
- 2.5.4 — 2021-04-05
- 2.5.3 — 2021-04-04
- 2.5.2 — 2021-04-04
- 2.5.1 — 2021-04-04
- 2.5.0 — 2021-04-04
- 2.4.0 — 2021-03-08
- 2.3.0 — 2021-02-05
- 2.1.0 — 2021-02-04
- 2.0.0 — 2021-01-15
- 1.1.0 — 2020-12-08
- 1.0.1 — 2020-12-08
- … 1 more at https://npm.io/package/voidbots/versions

## README

# VoidBots-NPM
An official module for interacting with the voidbots.net API

## Installation
`npm install voidbots`

## Documentation
Documentation can be found [here](https://docs.voidbots.net/)

## Example

### Example of posting server count with supported libraries (Discord.js and Eris)
```js
const Discord = require("discord.js");
const client = new Discord.Client();
const VoidBotsClient = require("voidbots");
const voidbots = new VoidBotsClient('Your voidbots.net token', { autoPost: true, webhookEnabled: true }, client);

// Optional events
voidbots.on('posted', () => {
  console.log('Server count posted!');
})

voidbots.on('error', e => {
 console.log(`Oops! ${e}`);
})

voidbots.on('voted', data => {
  console.log(`${data.user} has voted for ${data.bot}`)
})
```

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