YopBotList - SDK for YopBotList API
Links
Installation
npm install @yopbotlist/sdk
Usage
const { YopSDK } = require('@yopbotlist/sdk');
const yopApi = new YopSDK({
apiToken: "YOUR_API_TOKEN", // Can be found at https://www.yopbotlist.me/bots/[BOT_ID]/edit
botId: "BOT_ID"
});
yopApi.postStats({
guildCount: 1000,
shardCount: 1
}).then(() => {
console.log("Posted stats to YopBotList");
}).catch((err) => {
console.error("Error while posting stats to YopBotList", err);
});