aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2020-03-31Deseasonify: turn helpers into regular functionsGravatar kwzrd-5/+5
It is not necessary for these to be coroutines. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Deseasonify: `pop` from remaining icons rather than unpackGravatar kwzrd-1/+1
This should be more readable. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Deseasonify: delegate refresh to dedicated commandGravatar kwzrd-3/+1
Reduces code duplication. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Refactor: Github to GitHubGravatar kwzrd-15/+15
Co-authored-by: MarkKoz <[email protected]>
2020-03-31Refactor: adjust docstrings based on feedbackGravatar kwzrd-17/+13
* Capitalize month names * Add backticks to `sha` attr reference * Avoid misusing the term 'poll' Co-authored-by: MarkKoz <[email protected]>
2020-03-31Refactor: capitalize AssetType enum membersGravatar kwzrd-6/+6
Co-authored-by: MarkKoz <[email protected]>
2020-03-31Refactor: capitalize Month enum membersGravatar kwzrd-31/+31
Co-authored-by: MarkKoz <[email protected]>
2020-03-30Deseasonify: resolve current season w.r.t. month overrideGravatar kwzrd-2/+2
Previously, the env var was only being used for seasonal decorators, not branding. Although for testing purposes, seasons can be easily set via bot commands, it makes sense to also use the env var to choose the current season.
2020-03-30Deseasonify: move current month resolver to utilsGravatar kwzrd-18/+19
The function is useful to other modules as well - not only decorators. This declares it as public and moves it to a more accessible place.
2020-03-30Deseasonify: remove `autostart` env varGravatar kwzrd-1/+0
Constant is no longer used. See: 9259f985e6e327a522b4420c879a50cb4f75a09d
2020-03-30Deseasonify: add persistent branding configurationGravatar kwzrd-5/+31
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]>