Since March 17 2025, workers can access environment variables and secrets from the global scope. https://developers.cloudflare.com/changelog/2025-03-17-importable-env Now, we can set up bots outside the `fetch` method, which is a much better approach than before.