Skip to content

Environment variables

The Variables page stores secrets your bot may need, such as API keys for other services. Values are encrypted and kept in your browser.

  1. Open Variables.
  2. Select New variable.
  3. Enter a name and value.
  4. Save.

Names use capital letters, numbers and underscores, and start with a letter or underscore. For example:

WEBSITE_API_KEY
MUSIC_SERVICE_TOKEN

The page starts locked. Select Unlock and enter your 6-digit passcode to view or export values.

Select Lock when you are done, especially on a shared computer. Locking removes the key from memory until you unlock again.

Select Export .env while unlocked. DisFlow downloads a file containing your variables as NAME=value lines.

You can put this file next to an exported bot. Combine it with the token:

DISCORD_TOKEN=your-bot-token
WEBSITE_API_KEY=abc123

Your bot token is encrypted as soon as you add the bot. DisFlow does not write it into the files you export. You add it to the .env file yourself when setting up the bot — see Exporting your bot.