aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/decorators.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-30 19:09:40 +0200
committerGravatar kwzrd <[email protected]>2020-03-30 19:22:48 +0200
commit9259f985e6e327a522b4420c879a50cb4f75a09d (patch)
treeb9409277e9557e66aae023beae8217b2966654ef /bot/utils/decorators.py
parentDeseasonify: add default persistent config file for branding cog (diff)
Deseasonify: add persistent branding configuration
A persistent config file will remember whether the daemon is supposed to be running, or not. This means that instead of relying on the env variable, the daemon can be turned on or off "once and for all" via a command, and will not violate this decision on restart. This effectively deprecates the `Branding.autostart` env var. It is believed that having two ways to configure the same thing would be more confusing than useful. The env var will be removed. The two helper functions for reading and writing have been implemented in a generic manner, meaning that should a new config key be added in the future, the helpers shouldn't require any further adjustments. Suggested by lemon and scragly. Co-authored-by: Leon Sandøy <[email protected]> Co-authored-by: scragly <[email protected]>
Diffstat (limited to 'bot/utils/decorators.py')
0 files changed, 0 insertions, 0 deletions