mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix for DBots POST
This commit is contained in:
@@ -108,7 +108,7 @@ client.on('guildCreate', guild => {
|
|||||||
}
|
}
|
||||||
const DBotsPOST = {
|
const DBotsPOST = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
uri: 'https://bots.discord.pw/api/bots/278305350804045834/stats',
|
uri: 'https://bots.discord.pw/api/bots/' + config.botid + '/stats',
|
||||||
body: {
|
body: {
|
||||||
server_count: results.reduce((prev, val) => prev + val, 0)
|
server_count: results.reduce((prev, val) => prev + val, 0)
|
||||||
},
|
},
|
||||||
@@ -145,7 +145,7 @@ client.on('guildDelete', guild => {
|
|||||||
}
|
}
|
||||||
const DBotsPOST = {
|
const DBotsPOST = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
uri: 'https://bots.discord.pw/api/bots/278305350804045834/stats',
|
uri: 'https://bots.discord.pw/api/bots/' + config.botid + '/stats',
|
||||||
body: {
|
body: {
|
||||||
server_count: results.reduce((prev, val) => prev + val, 0)
|
server_count: results.reduce((prev, val) => prev + val, 0)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user