disforge.js 0.0.8
Install from the command line:
Learn more about npm packages
$ npm install @akrasio/disforge.js@0.0.8
Install via package.json:
"@akrasio/disforge.js": "0.0.8"
About this version
npm i disforge.js
const Discord = require("discord.js");
const client = new Discord.Client();
const Disforge = require('disforge.js');
const api = new Disforge.Client("Your-Disforge-API-Key-Here");
// Posting manually...
api.postStats(client).then(result => {
console.log(result)
});
// Posting every hour automatically :sunglasso:
api.autoPost(client).then(result => {
console.log(result)
});
client.login("YourDiscordBotTokenIsHere");
// You can replace "servers_total_members" with one of the strings below for a specific option OR not provide a value to return an object of all data.
/*
"servers_total_members", "servers", "servers_total_members", "bots", "bots_total_servers", "bots_awaiting_approval", "registered_users", "last_updated"
*/
api.stats("servers_total_members").then(result => {
console.log(result)
});
-> disforge.com
-> disforge.js
Details
- disforge.js
- Akrasio
- over 2 years ago
- MIT
- 1 dependencies
Assets
- disforge.js-0.0.8-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0