diff options
| author | 2019-08-05 23:30:02 +0800 | |
|---|---|---|
| committer | 2019-08-06 00:23:41 +0800 | |
| commit | b5ceff1f6cf68c9e81dcd336dcea3fa8c67ca3cf (patch) | |
| tree | 27e56e155b37fd6bf0dc3d4a0c12fc378a6e987a /bot/constants.py | |
| parent | Move bot out of constants.py to bot.py (diff) | |
Add constant groups to `constants.py`
The following groups are added: STAFF_ROLES, MODERATION_ROLES, WHITELISTED_CHANNELS, POSITIVE_REPLIES, NEGATIVE_REPLIES
Diffstat (limited to 'bot/constants.py')
| -rw-r--r-- | bot/constants.py | 57 | 
1 files changed, 55 insertions, 2 deletions
| diff --git a/bot/constants.py b/bot/constants.py index f46f21d6..dbf35754 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -3,8 +3,9 @@ from os import environ  from typing import NamedTuple  __all__ = ( -    "AdventOfCode", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Roles", -    "Tokens", "ERROR_REPLIES", +    "AdventOfCode", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Roles", "Tokens", +    "WHITELISTED_CHANNELS", "STAFF_ROLES", "MODERATION_ROLES", +    "POSITIVE_REPLIES", "NEGATIVE_REPLIES", "ERROR_REPLIES",  )  log = logging.getLogger(__name__) @@ -116,6 +117,58 @@ class Tokens(NamedTuple):      youtube = environ.get("YOUTUBE_API_KEY") +# Default role combinations +MODERATION_ROLES = Roles.moderator, Roles.admin, Roles.owner +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.devtest, +) + +# Bot replies +NEGATIVE_REPLIES = [ +    "Noooooo!!", +    "Nope.", +    "I'm sorry Dave, I'm afraid I can't do that.", +    "I don't think so.", +    "Not gonna happen.", +    "Out of the question.", +    "Huh? No.", +    "Nah.", +    "Naw.", +    "Not likely.", +    "No way, José.", +    "Not in a million years.", +    "Fat chance.", +    "Certainly not.", +    "NEGATORY.", +    "Nuh-uh.", +    "Not in my house!", +] + +POSITIVE_REPLIES = [ +    "Yep.", +    "Absolutely!", +    "Can do!", +    "Affirmative!", +    "Yeah okay.", +    "Sure.", +    "Sure thing!", +    "You're the boss!", +    "Okay.", +    "No problem.", +    "I got you.", +    "Alright.", +    "You got it!", +    "ROGER THAT", +    "Of course!", +    "Aye aye, cap'n!", +    "I'll allow it.", +] +  ERROR_REPLIES = [      "Please don't do that.",      "You have to stop.", | 
