1.0.0 • Published 1 year ago

@yopbotlist/sdk v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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