Skip to content

Commit

Permalink
dont post shard count to top.gg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Jul 30, 2024
1 parent aaf848f commit 64bf9aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assyst-core/src/rest/top_gg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ static ROUTE: LazyLock<String> = LazyLock::new(|| format!("https://top.gg/api/bo

pub async fn post_top_gg_stats(assyst: ThreadSafeAssyst) -> anyhow::Result<()> {
let guild_count = assyst.metrics_handler.guilds.get();
let shard_count = assyst.shard_count;

assyst
.reqwest_client
.post(&*ROUTE)
.header("authorization", &CONFIG.authentication.top_gg_token)
.json(&json!({ "server_count": guild_count, "shard_count": shard_count, "shards": [] }))
.json(&json!({ "server_count": guild_count }))
.send()
.await?
.error_for_status()?;
Expand Down

0 comments on commit 64bf9aa

Please sign in to comment.