env command
Allows a state to refer to an environment variable. This command is provided via the flobot plugin and isn't offered by any of the other core plugins.
Command config
{
"sendingEmail": {
"options": {
"to": {
"$env": {
"variableName": "FLOBOT_WELCOME_RECIPIENTS",
"failIfNotSet": true
}
},
"subject": "Welcome to Flobot!",
"text": "Congratulations... you are now part of the wonderful world of Flobot! <3"
}
}
}
Property | Type | Description | Required |
---|---|---|---|
variableName | string |
Name of an environment variable to read a value from | Yes |
failIfNotSet | boolean |
Should things fail if the environment variable hasn't been set? Defaults to false . |
No |