diff options
| author | 2020-03-20 22:48:32 +0100 | |
|---|---|---|
| committer | 2020-03-21 14:27:35 +0100 | |
| commit | 1435a916bc760de40b2f000f97b1a7f11a9a9a12 (patch) | |
| tree | ce1cd73e322abd87b544ab4de167ec993e27e619 /bot/seasons/pride/__init__.py | |
| parent | Deseasonify: improve branding embed (diff) | |
Deseasonify: define all seasons in one place
Defining seasons in seasonal packages' __init__.py files made more
sense when extensions were strictly tied to seasons. It introduces an
annoying circular dependency where a seasonal package must be imported
in order for the __init__.py file to run and register the season, but
it also imports SeasonBase from the parent directory so that it can
inherit from it.
I have made the decision to scrap the seasonal __init__.py files, and
instead define all seasons directly under SeasonBase. The classes are
no longer scattered around, we remove the above mentioned import
problem, and everything is more transparent and easier to digest.
Diffstat (limited to 'bot/seasons/pride/__init__.py')
| -rw-r--r-- | bot/seasons/pride/__init__.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/bot/seasons/pride/__init__.py b/bot/seasons/pride/__init__.py index 90e2fde9..e69de29b 100644 --- a/bot/seasons/pride/__init__.py +++ b/bot/seasons/pride/__init__.py @@ -1,22 +0,0 @@ -from bot.constants import Colours, Month -from bot.seasons import SeasonBase - - -class Pride(SeasonBase): - """Branding for june.""" - - season_name = "Pride" - bot_name = "ProudBot" - - colour = Colours.pink - description = ( - "The month of June is a special month for us at Python Discord. It is very important to us " - "that everyone feels welcome here, no matter their origin, identity or sexuality. During the " - "month of June, while some of you are participating in Pride festivals across the world, " - "we will be celebrating individuality and commemorating the history and challenges " - "of the LGBTQ+ community with a Pride event of our own!" - ) - - branding_path = "seasonal/pride" - - months = {Month.june} |