za419 / CadenceBot

A Discord bot for Cadence Radio
MIT License
2 stars 1 forks source link

Update first_time_setup to allow taking parameters on the commandline #84

Open za419 opened 3 years ago

za419 commented 3 years ago

In order to support more automated flows, as well as a variety of environments, enhance first_time_setup to support taking input on the commandline rather than stdin.

The end goal is that one could theoretically perform a setup by remote invocation of something like:

/path/to/CadenceBot/first_time_setup.sh --type=prod --unattended --mail-to=me@example.com --mail-subject=CadenceBot \
                                        --auth-token=$(cat prod-token) --timezone=America/Chicago

Don't forget to document all of this in the usage!