Skip to content

Commit

Permalink
fix: tracker fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Dec 17, 2018
1 parent 55cf4f7 commit f1d0dd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class Tracker {
/**
* Updates bots.discord.pw if the corresponding token is provided
* @param {number} guildsLen number of guilds that this bot is present on
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcGkiOnRydWUsImlkIjoiNzY2ODU1OTA1ODU2NzE2ODAiLCJpYXQiOjE1NDUwNjUwMzN9.GNUxtZcjoiq74N4mFL51kfwd2eW8iRLK8-LqVndUx5w
*/
async updateDiscordBotsWeb(guildsLen) {
if (config.botsDiscordPw.token && config.botsDiscordPw.id) {
Expand All @@ -100,9 +101,9 @@ class Tracker {
const parsedBody = await fetch(`https://discord.bots.gg/api/v1/bots/${config.botsDiscordPw.id}/stats`, {
method: 'POST',
body: JSON.stringify({
shard_id: parseInt(this.shardId, 10),
shard_count: parseInt(this.shardCount, 10),
server_count: parseInt(guildsLen, 10),
shardId: parseInt(this.shardId, 10),
shardCount: parseInt(this.shardCount, 10),
guildCount: parseInt(guildsLen, 10),
}),
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit f1d0dd5

Please sign in to comment.