mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Fix bots.gg post
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "134.16.1",
|
"version": "134.16.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
if (!BOTS_GG_TOKEN) return null;
|
if (!BOTS_GG_TOKEN) return null;
|
||||||
try {
|
try {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.post(`https://discord.bots.gg/api/bots/${this.user.id}/stats`)
|
.post(`https://discord.bots.gg/api/v1/bots/${this.user.id}/stats`)
|
||||||
.set({ Authorization: BOTS_GG_TOKEN })
|
.set({ Authorization: BOTS_GG_TOKEN })
|
||||||
.send({ guildCount: this.guilds.cache.size });
|
.send({ guildCount: this.guilds.cache.size });
|
||||||
this.logger.info('[BOTS.GG] Posted stats.');
|
this.logger.info('[BOTS.GG] Posted stats.');
|
||||||
|
|||||||
Reference in New Issue
Block a user