@nightcoredev/tpapi

1.0.6 • Public • Published

tpapi.js

Example Usage (Javascript)

const TPAPI = require('@nightcoredev/tpapi');
module.exports = (client) => {
        const tpapi = new TPAPI("v1");
        tpapi.postStats(client.guilds.size, client.users.size, client.user.id).then(r => {
            if (status === "success") {
                console.log(`Guild Stats Updated\n${r.body.message}`);
            } else {
                console.log(`Guild Stats Error\n${r.body.message}`);
            }
        }).catch((err) => {
            console.log(err);
        });
};

Readme

Keywords

none

Package Sidebar

Install

npm i @nightcoredev/tpapi

Weekly Downloads

9

Version

1.0.6

License

GPL-3.0

Unpacked Size

2.33 kB

Total Files

3

Last publish

Collaborators

  • nightcoredev