Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Yop-BotList/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published