Skip to content

πŸ“„ Environment Variables

Manuel edited this page May 15, 2023 · 3 revisions

This Discord bot allows configuration via environment variables. Environment variables are usually configured in different way depending on your operating system. If you use Docker, you can even pass environment variables without registering them on your host machine. If you don't run Docker, simply configure your environment variables in the following format in an .env file inside the project folder:

KEY=VALUE
KEY2=VALUE2

Available Variables

These are the available variables for configuration:

Variable Required Validation Usage
PORT no Must be a number, must be higher than 0 Can be used for adjusting the web server port
UPDATER_DISABLE_NOTIFICATIONS no true / false If disabled, the application will search for a new version each 2 hours on GitHub. If you do not have a connection active to outside, or you don't want to get notified, set this variable to true
DISCORD_CLIENT_TOKEN yes A string The Discord secret token you get from the installation guide
JELLYFIN_SERVER_ADDRESS yes The Jellyfin server address, must start with http:// or https:// This is your Jellyfin server. The bot will communicate with the API of your server
JELLYFIN_AUTHENTICATION_USERNAME yes A string The username of your bot account. It is recommended, that you create an account only for this bot for security reasons
JELLYFIN_AUTHENTICATION_PASSWORD yes A string The password of your bot account.
LOG_LEVEL LOG ERROR, WARN, LOG, DEBUG, VERBOSE The application log level. DEBUG and VERBOSE are normally not recommended, as they clutter your logs. Can be useful if you want to debug your bot.
ALLOW_EVERYONE_FOR_DEFAULT_PERMS false true / false If set to true, the application commands will be available to everyone on new servers. This does not work for existing servers.