aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-08-01 01:48:10 +0200
committerGravatar Leon Sandøy <[email protected]>2019-08-01 01:48:10 +0200
commit33397fa41d97550d46d73157327b5e8706d6b15a (patch)
tree0210d6303952e78ee5ce431d385b60c5f80f1c4a
parentMerge pull request #234 from python-discord/temp-branch (diff)
Untested retro gaming yolo commit. Adds the Wildcard season.
-rw-r--r--bot/seasons/season.py2
-rw-r--r--bot/seasons/wildcard/__init__.py33
2 files changed, 34 insertions, 1 deletions
diff --git a/bot/seasons/season.py b/bot/seasons/season.py
index 71324127..3b623040 100644
--- a/bot/seasons/season.py
+++ b/bot/seasons/season.py
@@ -270,7 +270,7 @@ class SeasonBase:
It will skip the announcement if the current active season is the "evergreen" default season.
"""
# Don't actually announce if reverting to normal season
- if self.name == "evergreen":
+ if self.name in ("evergreen", "wildcard"):
log.debug(f"Season Changed: {self.name}")
return
diff --git a/bot/seasons/wildcard/__init__.py b/bot/seasons/wildcard/__init__.py
new file mode 100644
index 00000000..c0b041c5
--- /dev/null
+++ b/bot/seasons/wildcard/__init__.py
@@ -0,0 +1,33 @@
+from bot.constants import Colours
+from bot.seasons import SeasonBase
+
+
+class Wildcard(SeasonBase):
+ """
+ For the month of August, the season is a Wildcard.
+ That means it changes every year.
+
+ This docstring will not be used for announcements.
+ Instead, we'll do the announcement manually, since
+ it will change every year.
+
+ This class needs slight changes every year,
+ such as the bot_name, bot_icon and icon.
+
+ IMPORTANT: DO NOT ADD ANY FEATURES TO THIS FOLDER.
+ ALL WILDCARD FEATURES SHOULD BE ADDED
+ TO THE EVERGREEN FOLDER!
+ """
+
+ name = "wildcard"
+ bot_name = "RetroBot"
+
+ # Duration of season
+ start_date = "01/07"
+ end_date = "31/07"
+
+ # Season logo
+ bot_icon = "/logos/logo_seasonal/retro_gaming/logo_8bit_indexed_504.png"
+ icon = (
+ "/logos/logo_seasonal/retro_gaming_animated/logo_spin_plain/logo_spin_plain_504.gif",
+ )