diff options
author | 2020-09-21 23:19:50 +0200 | |
---|---|---|
committer | 2020-09-21 23:53:00 +0200 | |
commit | 13ef604bd43a5eae4b1b3ade8670ceca1fc4592a (patch) | |
tree | fbcf03cda2f89dbaf3907bc302082278b0cdb640 /bot/constants.py | |
parent | Remove modlog from unload blacklist (diff) |
Move bot repo URL constant and delete avatar URL
- Avatar URL can be accessed through bot.user.avatar_url and won't need to be a constant
- Bot repo URL fits better under the Client named tuple
- URLs class removed, since it was no longer used
Diffstat (limited to 'bot/constants.py')
-rw-r--r-- | bot/constants.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bot/constants.py b/bot/constants.py index e7d4265e..c69d5a83 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -85,6 +85,7 @@ class Client(NamedTuple): token = environ.get("SEASONALBOT_TOKEN") sentry_dsn = environ.get("SEASONALBOT_SENTRY_DSN") debug = environ.get("SEASONALBOT_DEBUG", "").lower() == "true" + github_bot_repo = "https://github.com/python-discord/bot" # Override seasonal locks: 1 (January) to 12 (December) month_override = int(environ["MONTH_OVERRIDE"]) if "MONTH_OVERRIDE" in environ else None @@ -186,11 +187,6 @@ class Roles(NamedTuple): core_developers = 587606783669829632 -class URLs: - bot_avatar = "https://raw.githubusercontent.com/discord-python/branding/master/logos/logo_circle/logo_circle.png" - github_bot_repo = "https://github.com/python-discord/bot" - - class Tokens(NamedTuple): giphy = environ.get("GIPHY_TOKEN") aoc_session_cookie = environ.get("AOC_SESSION_COOKIE") |