From da4c08b60a8e9f25fb24ed4c094010dbdcddcc41 Mon Sep 17 00:00:00 2001 From: quizzicaltrains Date: Fri, 18 Oct 2019 18:39:46 -0700 Subject: Changed several things. --- bot/constants.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 0d4321c8..749af1d0 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -72,6 +72,7 @@ class Colours: soft_green = 0x68c290 soft_red = 0xcd6d6d yellow = 0xf9f586 + purple = 0xb734eb class Emojis: -- cgit v1.2.3 From 248c51a5fc699489e054417e5f0d86b1f0622fdd Mon Sep 17 00:00:00 2001 From: Eivind Teig Date: Mon, 18 Nov 2019 11:14:48 +0100 Subject: year binds to datetime instead of a magic number --- bot/constants.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index aa5c3db3..9ea026ca 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -1,6 +1,7 @@ import logging from os import environ from typing import NamedTuple +from datetime import datetime __all__ = ( "AdventOfCode", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Roles", "Tokens", @@ -16,7 +17,7 @@ class AdventOfCode: leaderboard_id = 363275 leaderboard_join_code = str(environ.get("AOC_JOIN_CODE", None)) leaderboard_max_displayed_members = 10 - year = 2018 + year = datetime.utcnow().year role_id = int(environ.get("AOC_ROLE_ID", 518565788744024082)) -- cgit v1.2.3 From daac80416305a669ca1afb0317c690b02200beed Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Mon, 25 Nov 2019 17:07:06 -0500 Subject: Update leaderboard ID --- bot/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 9ea026ca..5087119c 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -14,7 +14,7 @@ log = logging.getLogger(__name__) class AdventOfCode: leaderboard_cache_age_threshold_seconds = 3600 - leaderboard_id = 363275 + leaderboard_id = 631135 leaderboard_join_code = str(environ.get("AOC_JOIN_CODE", None)) leaderboard_max_displayed_members = 10 year = datetime.utcnow().year -- cgit v1.2.3 From 2ade62a185eafed7667aff6bb1936df16302ae3d Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Mon, 25 Nov 2019 17:20:49 -0500 Subject: Add env var support for Advent of Code year specification To assist with debugging --- bot/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 5087119c..732431ce 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -17,7 +17,7 @@ class AdventOfCode: leaderboard_id = 631135 leaderboard_join_code = str(environ.get("AOC_JOIN_CODE", None)) leaderboard_max_displayed_members = 10 - year = datetime.utcnow().year + year = int(environ.get("AOC_YEAR", datetime.utcnow().year)) role_id = int(environ.get("AOC_ROLE_ID", 518565788744024082)) -- cgit v1.2.3 From 40ff4655343bf232137ef72f3f84b74f15caa60b Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 2 Dec 2019 23:20:25 +0100 Subject: Add envelope emoji constant --- bot/constants.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index bea595d6..c09d8369 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -81,6 +81,7 @@ class Emojis: star = "\u2B50" christmas_tree = "\U0001F384" check = "\u2611" + envelope = "\U0001F4E8" terning1 = "<:terning1:431249668983488527>" terning2 = "<:terning2:462339216987127808>" -- cgit v1.2.3 From 529102d75682550202b230a32ca59a0a6c7dd58b Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> Date: Wed, 4 Dec 2019 15:10:59 +0100 Subject: Make AoC channel ID configurable for testing environments I have made the `#advent-of-code` channel id configurable using the same environment variable technique used for other settings. This makes it easier to test features that rely on this channel in a test environment. --- bot/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index c09d8369..ce650b80 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -23,7 +23,7 @@ class AdventOfCode: class Channels(NamedTuple): admins = 365960823622991872 - advent_of_code = 517745814039166986 + advent_of_code = int(environ.get("AOC_CHANNEL_ID", 517745814039166986)) announcements = int(environ.get("CHANNEL_ANNOUNCEMENTS", 354619224620138496)) big_brother_logs = 468507907357409333 bot = 267659945086812160 -- cgit v1.2.3 From 98c2b6789ccbadd786ecb316d2dde412629459f4 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Tue, 10 Dec 2019 23:27:35 +0100 Subject: Add bookmark icon url to constants --- bot/constants.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index c09d8369..71f56a09 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -4,6 +4,7 @@ from typing import NamedTuple from datetime import datetime __all__ = ( + "bookmark_icon_url", "AdventOfCode", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Roles", "Tokens", "WHITELISTED_CHANNELS", "STAFF_ROLES", "MODERATION_ROLES", "POSITIVE_REPLIES", "NEGATIVE_REPLIES", "ERROR_REPLIES", @@ -11,6 +12,11 @@ __all__ = ( log = logging.getLogger(__name__) +bookmark_icon_url = ( + "https://images-ext-2.discordapp.net/external/zl4oDwcmxUILY7sD9ZWE2fU5R7n6QcxEmPYSE5eddbg/" + "%3Fv%3D1/https/cdn.discordapp.com/emojis/654080405988966419.png?width=20&height=20" +) + class AdventOfCode: leaderboard_cache_age_threshold_seconds = 3600 -- cgit v1.2.3