sentcordts
TypeScript icon, indicating that this package has built-in type declarations

1.26.2 • Public • Published

sentcordts

A api wrapper of sentcord for posting your bot server and shard stats


Install

+ npm
npm install sentcordts
+ yarn
yarn add sentcordts 

Usage

/**
 * Import sentcordts
 * @class Sentcord
 */
const { Sentcord } = require("sentcordts");

const client = new Sentcord({
    token: "Api key", // Your api key of the bot from sentcord
    id: "Bot id" // Your bot id
});

/**
 * Post your total servers and shards
 */
client.post("Total Numbers", "Total Shards");
/** 
 * Log a custom text to check if the package is working or not
 * It's not necessary
*/
client.log("Text");

Example

const { Sentcord } = require("sentcordts");

const client = new Sentcord({
    token: "E2BT0ivIoSgE4tEQdIJXVLv31n0mOlc5gn7XYVyUhZ9kONz3IkIhZP", 
    id: "819050202508820491"
});

client.post("85", "1");

Package Sidebar

Install

npm i sentcordts

Weekly Downloads

4

Version

1.26.2

License

MIT

Unpacked Size

7.62 kB

Total Files

7

Last publish

Collaborators

  • colderry
  • avaxwzy