AS a developer, I want the configuration to use a JSON object rather than .env #130
Labels
No labels
blocked
duplicate
needs criteria
needs estimate
needs tests
question
requires documentation
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
epic
type
spike
type
story
type
subtask
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: External/card-drop#130
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic:
Story Points: 8
AS a developer, I want the configuration to use a JSON object rather than .env
SO THAT the config is cleaner
Acceptance Criteria
AS a developer
GIVEN I want to configure the bot using
config.json
WHEN the bot starts
THEN the bot will load the config out of this file instead
AS a developer
GIVEN I want to configure the bot with environment variables
WHEN I set an environment variable starting with
BOT_
THEN the bot will map these to the config json as well
Subtasks
Notes
BOT_
and separated by underscoresBOT_DISCORD_TOKEN=test
will be mapped to JSON as{ discord: { token: "test" } }
Should also maybe have a function to still use .env to translate to a JSON config, so we can configure in CI.
Such as:
express:token=test
would go to in the json asexpress: { token: "test" }
Move to JSON config over .env for projectsto AS a developer, I want the configuration to use a JSON object rather than .env