donatebot-node-api

Use the Donate Bot API with Node.JS


License
ISC
Install
npm install donatebot-node-api@1.0.3

Documentation

Donate Bot Node API

A Donate Bot API client for Node.JS

Installation

npm i donatebot-node-api --save

Documentation

Click here to read the documentation for this API client.

Usage

var DonateBotAPI =  require('donatebot-node-api');

var api = new DonateBotAPI({
	serverID:  "Your Discord Server ID",
	apiKey:  "Your Donate Bot API Key retrieved from the panel"
});

api.getNewDonations().then(donations =>  {
	console.log(donations);
}).catch(err =>  {
	console.log(err);
});