Murgi-Clan / MurgiBot

The phoenix of the Murgi Clan
https://crates.io/crates/murgi_bot
GNU General Public License v3.0
0 stars 0 forks source link

feat: env management #10

Open dat-adi opened 1 year ago

dat-adi commented 1 year ago

The current model relies on environment variables needing to be present in the instance of the shell. This is a practice that works for initial testing, but a better alternative would be to extend upon the application to incorporate reading files for initializing the settings instead.

  1. Start.
  2. Import secrets from config/settings.rs.
  3. settings.rs checks for the value of the variables in both the shell and the config.toml file.
  4. Application is run successfully.

References -> 1, 2.