# @yopbotlist/sdk

> YopBotList SDK, for NodeJS

Latest version **1.0.0** (published 2022-12-17) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @yopbotlist/sdk
pnpm add @yopbotlist/sdk
yarn add @yopbotlist/sdk
bun add @yopbotlist/sdk
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-12-17 |
| First published | 2022-12-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | valredstone |
| Maintainers | valredstone |
| Keywords | yopbotlist |

## Links

- npm: https://www.npmjs.com/package/@yopbotlist/sdk
- npm.io page: https://npm.io/package/@yopbotlist/sdk

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^1.2.1
- [express](https://npm.io/package/express.md) ^4.18.2
- [typescript](https://npm.io/package/typescript.md) ^4.9.4

## Recent versions

- 1.0.0 (latest) — 2022-12-17

## README

# YopBotList - SDK for YopBotList API

# Links

- [YopBotList](https://www.yopbotlist.me)
- [Discord Server](https://discord.gg/HgDKy7FcVJ)

## Installation

```bash
npm install @yopbotlist/sdk
```

## Usage

```js
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);
});
```

---
_Source: https://npm.io/package/@yopbotlist/sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
