mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
async postBotsGGStats() {
|
async postBotsGGStats() {
|
||||||
try {
|
try {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.post(`https://discordbotlist.com/api/v1/bots/${this.user.id}/stats`)
|
.post(`https://discord.bots.gg/api/bots/${this.user.id}/stats`)
|
||||||
.set({ Authorization: BOTS_GG_TOKEN })
|
.set({ Authorization: BOTS_GG_TOKEN })
|
||||||
.send({ guildCount: this.guilds.size });
|
.send({ guildCount: this.guilds.size });
|
||||||
this.logger.info('[BOTS.GG] Posted stats.');
|
this.logger.info('[BOTS.GG] Posted stats.');
|
||||||
@@ -79,7 +79,7 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
async postDiscordBotListStats() {
|
async postDiscordBotListStats() {
|
||||||
try {
|
try {
|
||||||
const { body } = await request
|
const { body } = await request
|
||||||
.post(`https://discord.bots.gg/api/bots/${this.user.id}/stats`)
|
.post(`https://discordbotlist.com/api/v1/bots/${this.user.id}/stats`)
|
||||||
.set({ Authorization: DISCORDBOTLIST_TOKEN })
|
.set({ Authorization: DISCORDBOTLIST_TOKEN })
|
||||||
.send({
|
.send({
|
||||||
guilds: this.guilds.size,
|
guilds: this.guilds.size,
|
||||||
|
|||||||
Reference in New Issue
Block a user