1.3.0 • Published 2 years ago
discord-stats.js v1.3.0
Discord Stats
Information:
Examples
const stats = require("discord-stats.js");
stats.servers.get("staff", true).then(console.log); // Get average amount of servers staffed onper person
stats.servers.get("member", false).then(console.log); // Get amounts of sevrers not staff on. Sorted descending
stats.blocked.get().then(console.log); // Get average users blocked per person
stats.blocked.get(false).then(console.log); // Get amounts of users blocked. Sorted descending
stats.hours.get().then(console.log); // Get average amount of hours spent on Discord per day
stats.hours.get(false).then(console.log); // Get amounts of hours spent on Discord per day. Sorted descending
stats.rating.get().then(console.log); // Get the average overall rating of Discord (out of 10)
stats.rating.get(false).then(console.log); // Get ratings of Discord. Sorted descending
stats.friends.get().then(console.log); // Get average amount of friends on Discord per user
stats.friends.get(false).then(console.log); // Get amounts of friends per user on Discord
stats.user.get("MatievisTheKat").then(console.log); // Get a specific user's response
Docs
hours.get(average)
- Get amount of hours on Discord
- Arguments: average (true|false)
- Default: true
blocked.get(average)
- Get amount of blocked users
- Agruments: average (true|false)
- Default: true
friends.get(average)
- Get amount of friends
- Arguments: average (true|false)
- Default: true
servers.get(type, average)
- Get amount of servers
- Arguments: average (true|false); type (staff|member|total)
- Default: total, true
rating.get(average)
- Get the rating of Discord
- Arguments: average (true|false)
- Default: true
user.get(username)
- Get a response from a certain user
- Arguments: username (string)
- Default: none