diff options
author | 2020-08-29 00:48:51 -0700 | |
---|---|---|
committer | 2020-08-29 00:48:51 -0700 | |
commit | d6f91f87cccfa558e948f8c8bd7aa3870e056bd2 (patch) | |
tree | 7ff5a5f2059ab28d401ed32496f6e21948569dbd /bot | |
parent | Merge pull request #427 from python-discord/python-topics (diff) |
Updated constants to include Wolfram configuration.
Diffstat (limited to 'bot')
-rw-r--r-- | bot/constants.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index bf6c5a40..4a97b9e0 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -17,6 +17,7 @@ __all__ = ( "Month", "Roles", "Tokens", + "Wolfram", "MODERATION_ROLES", "STAFF_ROLES", "WHITELISTED_CHANNELS", @@ -96,6 +97,7 @@ class Colours: soft_red = 0xcd6d6d yellow = 0xf9f586 purple = 0xb734eb + soft_orange = 0xf9cb54 class Emojis: @@ -187,6 +189,12 @@ class Tokens(NamedTuple): github = environ.get("GITHUB_TOKEN") +class Wolfram(NamedTuple): + user_limit_day = environ.get("WOLFRAM_USER_LIMIT_DAY", 10) + guild_limit_day = environ.get("WOLFRAM_GUILD_LIMIT_DAY", 67) + key = environ.get("WOLFRAM_API_KEY", None) + + # Default role combinations MODERATION_ROLES = Roles.moderator, Roles.admin, Roles.owner STAFF_ROLES = Roles.helpers, Roles.moderator, Roles.admin, Roles.owner |