diff options
author | 2023-05-01 14:26:52 +0100 | |
---|---|---|
committer | 2023-05-06 13:20:46 +0100 | |
commit | 54eaf1402630347b0be689ee1b60214087d542ab (patch) | |
tree | 4fc5725e6ec43b5f71e64970d3ade085a66c5897 /bot/constants.py | |
parent | update Redis config (diff) |
update Reddit
Diffstat (limited to 'bot/constants.py')
-rw-r--r-- | bot/constants.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bot/constants.py b/bot/constants.py index 81db539a..2a28cd22 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -342,13 +342,17 @@ class RedirectOutput: delete_delay: int = 10 -class Reddit: +class _Reddit(EnvConfig): + EnvConfig.Config.env_prefix = "reddit_" + subreddits = ["r/Python"] - client_id = environ.get("REDDIT_CLIENT_ID") - secret = environ.get("REDDIT_SECRET") - webhook = int(environ.get("REDDIT_WEBHOOK", 635408384794951680)) + client_id = "" + secret = "" + webhook = 635408384794951680 + +Reddit = _Reddit() # Default role combinations MODERATION_ROLES = {Roles.moderation_team, Roles.admins, Roles.owners} |