diff options
Diffstat (limited to '')
| -rw-r--r-- | bot/constants.py | 22 | 
1 files changed, 19 insertions, 3 deletions
| diff --git a/bot/constants.py b/bot/constants.py index 26cc9715..d99da892 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -1,11 +1,12 @@ +import enum  import logging +from datetime import datetime  from os import environ  from typing import NamedTuple -from datetime import datetime  __all__ = (      "bookmark_icon_url", -    "AdventOfCode", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Roles", "Tokens", +    "AdventOfCode", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Month", "Roles", "Tokens",      "WHITELISTED_CHANNELS", "STAFF_ROLES", "MODERATION_ROLES",      "POSITIVE_REPLIES", "NEGATIVE_REPLIES", "ERROR_REPLIES",  ) @@ -68,7 +69,7 @@ class Client(NamedTuple):      token = environ.get("SEASONALBOT_TOKEN")      debug = environ.get("SEASONALBOT_DEBUG", "").lower() == "true"      season_override = environ.get("SEASON_OVERRIDE") -    icon_cycle_frequency = 3  # N days to wait between cycling server icons within a single season +    icon_cycle_frequency = 3  # 0: never, 1: every day, 2: every other day, ...  class Colours: @@ -116,6 +117,21 @@ class Hacktoberfest(NamedTuple):      voice_id = 514420006474219521 +class Month(enum.IntEnum): +    january = 1 +    february = 2 +    march = 3 +    april = 4 +    may = 5 +    june = 6 +    july = 7 +    august = 8 +    september = 9 +    october = 10 +    november = 11 +    december = 12 + +  class Roles(NamedTuple):      admin = int(environ.get("SEASONALBOT_ADMIN_ROLE_ID", 267628507062992896))      announcements = 463658397560995840 | 
