diff options
| author | 2020-11-16 20:19:19 +0200 | |
|---|---|---|
| committer | 2020-11-16 20:19:19 +0200 | |
| commit | 5481e3cc304ac82d8e642220fa4f06c2f9e5795e (patch) | |
| tree | dee12979bbff9f76a700d540f4033fda207fb767 | |
| parent | Merge pull request #1284 from python-discord/sebastiaan/features/move-ci-to-g... (diff) | |
Add months Enum to constants
| -rw-r--r-- | bot/constants.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py index 731f06fed..64f3bce98 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -13,7 +13,7 @@ their default values from `config-default.yml`. import logging import os from collections.abc import Mapping -from enum import Enum +from enum import Enum, IntEnum from pathlib import Path from typing import Dict, List, Optional @@ -631,6 +631,24 @@ class Event(Enum): voice_state_update = "voice_state_update" +class Month(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 + + def __str__(self) -> str: + return self.name.title() + + # Debug mode DEBUG_MODE = True if 'local' in os.environ.get("SITE_URL", "local") else False |