mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
23 lines
656 B
JavaScript
23 lines
656 B
JavaScript
const request = require('superagent');
|
|
|
|
class Stats {
|
|
constructor() {
|
|
throw new Error(`The ${this.constructor.name} class may not be instantiated.`);
|
|
}
|
|
|
|
static discordBots(server_count, userID) {
|
|
return request
|
|
.post(`https://bots.discord.pw/api/bots/${userID}/stats`)
|
|
.set({ 'Authorization': process.env.DISCORD_BOTS_KEY })
|
|
.send({ server_count });
|
|
}
|
|
|
|
static carbon(servercount) {
|
|
return request
|
|
.post('https://www.carbonitex.net/discord/data/botdata.php')
|
|
.send({ key: process.env.CARBON_KEY, servercount });
|
|
}
|
|
}
|
|
|
|
module.exports = Stats;
|