Configuration

This section explains the configuration options available in the auth.toml and log.toml files as well as environment variables as alternative source of settings.

  • Authentication configuration for required login information for both Advent of Code as we as Discord.
  • Logging configuration for terminal and file logging.
  • Environment Variables as overrides or alternative to the TOML files.

File location

The bot expects both auth.toml and log.toml to be located in a config folder in the current working directory. For example, let's say the current directory is /apps/aoc_bot, the structure would be as follows:

apps/
    aoc_bot/        <-- current directory
        config/
            auth.toml  <-- Authentication settings
            log.toml   <-- Logging settings