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