aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/constants.py72
1 files changed, 45 insertions, 27 deletions
diff --git a/bot/constants.py b/bot/constants.py
index acdd006e..bc0e4677 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -5,9 +5,24 @@ from os import environ
from typing import NamedTuple
__all__ = (
- "AdventOfCode", "Branding", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Month", "Roles", "Tokens",
- "WHITELISTED_CHANNELS", "STAFF_ROLES", "MODERATION_ROLES",
- "POSITIVE_REPLIES", "NEGATIVE_REPLIES", "ERROR_REPLIES",
+ "AdventOfCode",
+ "Branding",
+ "Channels",
+ "Client",
+ "Colours",
+ "Emojis",
+ "Hacktoberfest",
+ "Icons",
+ "Lovefest",
+ "Month",
+ "Roles",
+ "Tokens",
+ "MODERATION_ROLES",
+ "STAFF_ROLES",
+ "WHITELISTED_CHANNELS",
+ "ERROR_REPLIES",
+ "NEGATIVE_REPLIES",
+ "POSITIVE_REPLIES",
)
log = logging.getLogger(__name__)
@@ -22,6 +37,11 @@ class AdventOfCode:
role_id = int(environ.get("AOC_ROLE_ID", 518565788744024082))
+class Branding:
+ cycle_frequency = int(environ.get("CYCLE_FREQUENCY", 3)) # 0: never, 1: every day, 2: every other day, ...
+ autostart = environ.get("BRANDING_AUTOSTART", "").lower() == "true" # Launch the branding daemon on start-up
+
+
class Channels(NamedTuple):
admins = 365960823622991872
advent_of_code = int(environ.get("AOC_CHANNEL_ID", 517745814039166986))
@@ -57,11 +77,6 @@ class Channels(NamedTuple):
hacktoberfest_2019 = 628184417646411776
-class Branding:
- cycle_frequency = int(environ.get("CYCLE_FREQUENCY", 3)) # 0: never, 1: every day, 2: every other day, ...
- autostart = environ.get("BRANDING_AUTOSTART", "").lower() == "true" # Launch the branding daemon on start-up
-
-
class Client(NamedTuple):
guild = int(environ.get("SEASONALBOT_GUILD", 267624335836053506))
prefix = environ.get("PREFIX", ".")
@@ -103,6 +118,10 @@ class Emojis:
merge = "<:PRMerged:629695470570176522>"
+class Hacktoberfest(NamedTuple):
+ voice_id = 514420006474219521
+
+
class Icons:
questionmark = "https://cdn.discordapp.com/emojis/512367613339369475.png"
bookmark = (
@@ -115,10 +134,6 @@ class Lovefest:
role_id = int(environ.get("LOVEFEST_ROLE_ID", 542431903886606399))
-class Hacktoberfest(NamedTuple):
- voice_id = 514420006474219521
-
-
class Month(enum.IntEnum):
january = 1
february = 2
@@ -166,12 +181,28 @@ STAFF_ROLES = Roles.helpers, Roles.moderator, Roles.admin, Roles.owner
# Whitelisted channels
WHITELISTED_CHANNELS = (
- Channels.bot, Channels.seasonalbot_commands,
- Channels.off_topic_0, Channels.off_topic_1, Channels.off_topic_2,
+ Channels.bot,
+ Channels.seasonalbot_commands,
+ Channels.off_topic_0,
+ Channels.off_topic_1,
+ Channels.off_topic_2,
Channels.devtest,
)
# Bot replies
+ERROR_REPLIES = [
+ "Please don't do that.",
+ "You have to stop.",
+ "Do you mind?",
+ "In the future, don't do that.",
+ "That was a mistake.",
+ "You blew it.",
+ "You're bad at computers.",
+ "Are you trying to kill me?",
+ "Noooooo!!",
+ "I can't believe you've done this",
+]
+
NEGATIVE_REPLIES = [
"Noooooo!!",
"Nope.",
@@ -211,16 +242,3 @@ POSITIVE_REPLIES = [
"Aye aye, cap'n!",
"I'll allow it.",
]
-
-ERROR_REPLIES = [
- "Please don't do that.",
- "You have to stop.",
- "Do you mind?",
- "In the future, don't do that.",
- "That was a mistake.",
- "You blew it.",
- "You're bad at computers.",
- "Are you trying to kill me?",
- "Noooooo!!",
- "I can't believe you've done this",
-]