mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Move Things Around
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user