Skip to content

Commit

Permalink
fix: migrate to topstats.gg for bot statistics (#1008)
Browse files Browse the repository at this point in the history
Signed-off-by: Promise <[email protected]>
  • Loading branch information
promise authored Feb 14, 2025
1 parent 7ae871f commit 3ab2fe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/api/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function getDblStatistics(token?: string): Promise<Record<"guilds" | "rank
const {
server_count: guilds = null,
server_count_rank: ranking = null,
} = await fetch("https://dblstatistics.com/api/bots/467377486141980682", {
} = await fetch("https://api.topstats.gg/discord/bots/467377486141980682", {
headers: { Authorization: token },
cf: { cacheTtl, cacheEverything: true },
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class Stats extends React.Component<Record<string, never>, { stat
{
title: "Bot Ranking",
count: stats.ranking,
link: "https://dblstatistics.com/bot/467377486141980682",
link: "https://topstats.gg/discord/bots/467377486141980682",
},
{
title: "Server Count",
Expand Down

0 comments on commit 3ab2fe1

Please sign in to comment.