mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-27 11:43:51 +00:00
Basic env vars section. Might expand later.
@@ -42,5 +42,16 @@ You can also use the current working directory as the output directory by specif
|
||||
For more information, please refer to the [Dockerfile](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/Dockerfile) and [Docker documentation](https://docs.docker.com/engine/reference/run/).<br/>
|
||||
To get your Token and Channel IDs, please refer to [this page](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs).
|
||||
|
||||
### Environment variables (advanced)
|
||||
|
||||
DCE.CLI accepts environment variables as fallback for the `--token` and `--bot` options.
|
||||
|
||||
`DISCORD_TOKEN` for user tokens<br/>
|
||||
`DISCORD_TOKEN_BOT` for bot tokens
|
||||
|
||||
You can use these variables either with a combination of the `--env-file` Docker option and a `.env` file or with the `--env` option.<br/>
|
||||
Please refer to the Docker documentation for more information:<br/>
|
||||
* [Docker run - Set environment variables](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file)<br/>
|
||||
|
||||
##
|
||||
Special thanks to [@simnalamburt](https://github.com/simnalamburt) (dockerize) and [@Nimja](https://github.com/nimja) (better instructions)
|
||||
Reference in New Issue
Block a user