Skip to content

Commit

Permalink
add some explanatory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeanerd committed Oct 2, 2022
1 parent 7f3674f commit 48cab03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ async function handleInternal(
let server_count = 0;
let shard_id: number | undefined;
// Checks if bot is sharded
// Only run posting from shard 0
if (client.shard?.ids.includes(0)) {
shard_count = client.shard.count;
shard_id = client.shard.ids.at(0);
shard_id = client.shard.ids.at(0); // this should always only be a single number

// This will get as much info as it can, without erroring
try {
Expand Down

0 comments on commit 48cab03

Please sign in to comment.