diff options
| author | 2020-04-20 13:14:46 +0300 | |
|---|---|---|
| committer | 2020-04-20 13:14:46 +0300 | |
| commit | f9dac725a5cac4dbe725aa86d1fbcee5e3a9b5af (patch) | |
| tree | e06e11c23c454c7783927be7c3535df0c7df1dd8 | |
| parent | Added new category `python_news` to config, that hold mail lists, channel and... (diff) | |
Applied Python News config changes
Removed Webhook and Channel from their listings, created new class `PythonNews` that hold them + mail lists.
| -rw-r--r-- | bot/constants.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py index 4c2f22741..202a17d71 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -394,7 +394,6 @@ class Channels(metaclass=YAMLGetter): off_topic_2: int organisation: int python_discussion: int - python_news: int reddit: int talent_pool: int user_event_announcements: int @@ -412,7 +411,6 @@ class Webhooks(metaclass=YAMLGetter): reddit: int duck_pond: int dev_log: int - python_news: int class Roles(metaclass=YAMLGetter): @@ -571,6 +569,14 @@ class Sync(metaclass=YAMLGetter): max_diff: int +class PythonNews(metaclass=YAMLGetter): + section = 'python_news' + + mail_lists: List[str] + channel: int + webhook: int + + class Event(Enum): """ Event names. This does not include every event (for example, raw |