1.0.8 • Published 6 years ago

bfd-api v1.0.8

Weekly downloads
584
License
AGPL-3.0
Repository
-
Last release
6 years ago

Installation

npm install bfd-api

Usage

Example of posting a bots servercount to the API

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!

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!

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!

const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.getBotEmbed('bot-id');

###If You Want to resize

const BFD = require("bfd-api");
const bfd = new BFD('Your Token');
bfd.getBotEmbed('bot-id', 'size');

To get a verfiyed or not verfiyed!

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

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!

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago