dboats API
Easily use the discordboats.club API from your NodeJS bots!
Examples
// Create the clientconst Client = ;const dboats = 'api key' 'optional base url, if you want to use a self hosted version of discordboats.club'; // Get stats about the listawait dboats; // Returns an object of stats // Get information about the current bot userawait dboats; // Returns an object of information about the current bot // Get information about a specific botawait dboats; // Returns general information about the requested bot // Gets if a user has liked the bot on discordboats.clubawait dboats; // Returns the timestamp of when they voted if they have, otherwise false // Post servers to discordboats.clubawait dboats; // Returns true if it posts successfully // Get information about a specific userawait dboats; // Returns an object of user information
Webhook
const Webhook = ;const webhookServer = port: 1234 // required auth: 'password in dboats' // required path: '/webhook' // optional path for the webhook, defaults to /; webhookServer; // create an event to handle when your bot is liked webhookServer; // create an event to handle when your bot is unliked webhookServerstart; // start the server