1.0.2 • Published 4 years ago
@bots-co/sdk v1.0.2
Bots & Co Node SDK
The official module for interacting with the Bots & Co API
Support
You can contact us for support on our chat server
Webhook Usage
const BotsCo = require('@bots-co/sdk');
const webhook = new BotsCo.Webhook(3000, '/bots-co-webhook', 'youshallnotpass');
webhook.on('ready', () => console.log('Webhook is ready!'));
webhook.on('vote', (userId) => console.log(`User with id ${userId} just voted`));
webhook.build();
API Usage
const BotsCo = require('@bots-co/sdk');
const api = new BotsCo.Api('814589771539677234', 'youshallnotpass');
api.postStats(client.guilds.cache.size, 1);
Install
npm install spdl-core@latest
Or for Yarn users:
yarn add spdl-core@latest
Make sure you're installing the latest version of spdl-core to keep up with the latest fixes.