donatebot-node-api

Use the Donate Bot API with Node.JS

Usage no npm install needed!

<script type="module">
  import donatebotNodeApi from 'https://cdn.skypack.dev/donatebot-node-api';
</script>

README

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);
});