1.0.1 • Published 3 years ago

fates-api v1.0.1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Fates SDK

Types Friendly Node SDK for the Fates List API


Install

+ npm
npm install fates-api
+ yarn
yarn add fates-api

Usage

const { FatesClient } = require("fates-api");

const fates = new FatesClient({
    token: "Api key", // Fates List API Token
    botID: "Bot id" // Bot ID to Post Stats For
});

/**
 * Post your Server and Shard Count
 */
fates.post("Total Numbers", "Total Shards");

/** 
 * Log a custom text to check if the package is working or not
 * It's not necessary
*/
fates.log("Text");

Example

const { FatesClient } = require("fates-api");

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

/** Servers, Shards, Users, ShardArray */
fates.post(client.guilds.cache.size, client.shards.size, client.users.cache.size, [])
.then(() => {
    fates.log("[Fates API]: Stats have been posted chief!")
}).catch((err) => {
    fates.log(`[Fates API]: Failed to Post Bot Stats: ${err.stack}`)
});
1.0.1

3 years ago

1.0.0

3 years ago