// use case

Develop a Discord bot without redeploying every save

Discord's interactions endpoint and OAuth callback both require HTTPS. You can run the bot locally but the slash commands and OAuth flow won't work without a public URL. lrok gets you there in one command.
  1. Reserve a stable name

    $ lrok reserve mybot-dev
  2. Run the bot

    $ python bot.py
  3. Tunnel and configure Discord

    Discord Developer Portal → your app → Interactions Endpoint URL: https://mybot-dev.lrok.io/interactions

    $ lrok http 5000 --hint mybot-dev

// why lrok for this

Discord requires the interactions endpoint to respond within 3 seconds. lrok proxies with sub-50ms overhead in Helsinki — fine for the EU; ~80-200ms from US-East depending on your laptop's network.

Related workflows