mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Code Improvements, NSFW Anime Command
This commit is contained in:
+3
-2
@@ -1,17 +1,18 @@
|
||||
const request = require('superagent');
|
||||
const { CARBON_KEY, DISCORD_BOTS_KEY } = process.env;
|
||||
|
||||
class Stats {
|
||||
static discordBots(server_count, userID) {
|
||||
return request
|
||||
.post(`https://bots.discord.pw/api/bots/${userID}/stats`)
|
||||
.set({ 'Authorization': process.env.DISCORD_BOTS_KEY })
|
||||
.set({ 'Authorization': 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 });
|
||||
.send({ key: CARBON_KEY, servercount });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user