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.
Add a variable
Section titled “Add a variable”- Open Variables.
- Select New variable.
- Enter a name and value.
- Save.
Names use capital letters, numbers and underscores, and start with a letter or underscore. For example:
WEBSITE_API_KEYMUSIC_SERVICE_TOKENUnlock and lock
Section titled “Unlock and lock”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.
Export a .env file
Section titled “Export a .env file”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-tokenWEBSITE_API_KEY=abc123Your bot token
Section titled “Your bot token”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.