# bfd-api

> A API Wrapper for botsfordiscord.com API

Latest version **1.0.8** (published 2018-10-06) · AGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install bfd-api
pnpm add bfd-api
yarn add bfd-api
bun add bfd-api
```

## 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.8 |
| Published | 2018-10-06 |
| First published | 2018-02-16 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 38.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sarpturker |
| Keywords | discord, bfd bot, list, api, javascript |

## Links

- npm: https://www.npmjs.com/package/bfd-api
- Homepage: https://botsfordiscord.com/api
- npm.io page: https://npm.io/package/bfd-api

## Dependencies (1)

- [snekfetch](https://npm.io/package/snekfetch.md) ^3.6.4

## Recent versions

- 1.0.8 (latest) — 2018-10-06
- 1.0.7 — 2018-10-06
- 1.0.6 — 2018-10-06
- 1.0.5 — 2018-10-06
- 1.0.4 — 2018-10-06
- 1.0.3 — 2018-09-29
- 1.0.2 — 2018-09-29
- 1.0.1 — 2018-09-28
- 1.0.0 — 2018-09-28
- 0.2.6 — 2018-02-24
- 0.2.5 — 2018-02-24
- 0.2.4 — 2018-02-24
- 0.2.3 — 2018-02-24
- 0.2.2 — 2018-02-17
- 0.2.1 — 2018-02-17
- … 11 more at https://npm.io/package/bfd-api/versions

## README

## Installation
`npm install bfd-api`

## Usage

**Example of posting a bots servercount to the API**
```javascript
const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.postCount('your server count', 'your bot id');
```

**The api wrapper supports getting a bots info!**

```javascript
const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.getBot('bot-id');
```
*Note: The wrapper automatically parses the JSON data!*

**The Api Wrapper Supports Getting All Bots info Too!**

```javascript
const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.getBots();
```
*Note: The wrapper automatically parses the JSON data!*

**To get a bot widget!**

```javascript
const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.getBotEmbed('bot-id');
```
###If You Want to resize
```javascript
const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.getBotEmbed('bot-id', 'size');
```

**To get a verfiyed or not verfiyed!**

```javascript
const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.hasVerified('bot-id');
```
It will return `true` if verifyed , if it not verifyed it will return `false`

**The Api Wrapper Supports Getting Verfied Bot! If bot not verfied it will return false if verifed returns true**

```javascript
const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
const info = await bfd.hasVerified('Bot ID (that will we get verifed or not)');

console.log(info) //now it will log to console If bot not verfied false , If verfiyed true 
```

Enjoy the wrapper!

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