mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
const in index.js
This commit is contained in:
@@ -38,7 +38,7 @@ client.on('guildCreate', async(guild) => {
|
|||||||
const results = await client.shard.fetchClientValues('guilds.size');
|
const results = await client.shard.fetchClientValues('guilds.size');
|
||||||
console.log(`[Guild Count] ${results.reduce((prev, val) => prev + val, 0)}`);
|
console.log(`[Guild Count] ${results.reduce((prev, val) => prev + val, 0)}`);
|
||||||
try {
|
try {
|
||||||
let response = await request
|
const response = await request
|
||||||
.post('https://www.carbonitex.net/discord/data/botdata.php')
|
.post('https://www.carbonitex.net/discord/data/botdata.php')
|
||||||
.send({
|
.send({
|
||||||
key: config.carbonkey,
|
key: config.carbonkey,
|
||||||
@@ -50,7 +50,7 @@ client.on('guildCreate', async(guild) => {
|
|||||||
console.log(`[Carbon] Failed to post to Carbon. ${err}`);
|
console.log(`[Carbon] Failed to post to Carbon. ${err}`);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let response = await request
|
const response = await request
|
||||||
.post(`https://bots.discord.pw/api/bots/${config.botID}/stats`)
|
.post(`https://bots.discord.pw/api/bots/${config.botID}/stats`)
|
||||||
.set({
|
.set({
|
||||||
'Authorization': config.botskey
|
'Authorization': config.botskey
|
||||||
@@ -71,7 +71,7 @@ client.on('guildDelete', async(guild) => {
|
|||||||
const results = await client.shard.fetchClientValues('guilds.size');
|
const results = await client.shard.fetchClientValues('guilds.size');
|
||||||
console.log(`[Guild Count] ${results.reduce((prev, val) => prev + val, 0)}`);
|
console.log(`[Guild Count] ${results.reduce((prev, val) => prev + val, 0)}`);
|
||||||
try {
|
try {
|
||||||
let response = await request
|
const response = await request
|
||||||
.post('https://www.carbonitex.net/discord/data/botdata.php')
|
.post('https://www.carbonitex.net/discord/data/botdata.php')
|
||||||
.send({
|
.send({
|
||||||
key: config.carbonkey,
|
key: config.carbonkey,
|
||||||
@@ -83,7 +83,7 @@ client.on('guildDelete', async(guild) => {
|
|||||||
console.log(`[Carbon] Failed to post to Carbon. ${err}`);
|
console.log(`[Carbon] Failed to post to Carbon. ${err}`);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let response = await request
|
const response = await request
|
||||||
.post(`https://bots.discord.pw/api/bots/${config.botID}/stats`)
|
.post(`https://bots.discord.pw/api/bots/${config.botID}/stats`)
|
||||||
.set({
|
.set({
|
||||||
'Authorization': config.botskey
|
'Authorization': config.botskey
|
||||||
|
|||||||
Reference in New Issue
Block a user