Goal: Understand what shards are and why the handler uses index.js.
A shard is basically another copy of your bot that runs at the same time, but each copy only handles some servers instead of all of them.
Discord limits how much one bot process can handle. If a bot is in many servers, it can become slow or crash. Sharding fixes this by spreading the workload across multiple bot processes.
index.js is the shard manager — it creates and manages shards.
app.js is the actual bot code that each shard runs.
Do not change sharding values unless Helix tells you to.
Changing shard settings incorrectly can cause commands to stop working, servers to not respond, or the bot to fail to start.