diff options
| author | 2019-04-21 12:21:26 +1000 | |
|---|---|---|
| committer | 2019-04-21 12:21:26 +1000 | |
| commit | acbd409769342a8c58c62d075fe1f0c89dd508ff (patch) | |
| tree | 79091b06b5523dfaa67cef0eef8bacdf3976a583 /bot/seasons/easter/egg_hunt/constants.py | |
| parent | Merge pull request #184 from RohanRadia/master (diff) | |
| parent | Merge remote-tracking branch 'origin/egg_hunt' into egg_hunt (diff) | |
Merge pull request #195 from python-discord/egg_hunt
Egg hunt
Co-authored-by: S. Co1 <[email protected]>
Diffstat (limited to 'bot/seasons/easter/egg_hunt/constants.py')
| -rw-r--r-- | bot/seasons/easter/egg_hunt/constants.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/bot/seasons/easter/egg_hunt/constants.py b/bot/seasons/easter/egg_hunt/constants.py new file mode 100644 index 00000000..3f3c3bbe --- /dev/null +++ b/bot/seasons/easter/egg_hunt/constants.py @@ -0,0 +1,39 @@ +import os + +from discord import Colour + +from bot.constants import Channels, Client, bot + + +GUILD = bot.get_guild(Client.guild) + + +class EggHuntSettings: + start_time = int(os.environ["HUNT_START"]) + end_time = start_time + 172800 # 48 hrs later + windows = os.environ.get("HUNT_WINDOWS").split(',') or [] + allowed_channels = [ + Channels.seasonalbot_chat, + Channels.off_topic_0, + Channels.off_topic_1, + Channels.off_topic_2, + ] + + +class Roles: + white = GUILD.get_role(569304397054607363) + blurple = GUILD.get_role(569304472820514816) + + +class Emoji: + egg_white = bot.get_emoji(569266762428841989) + egg_blurple = bot.get_emoji(569266666094067819) + egg_gold = bot.get_emoji(569266900106739712) + egg_diamond = bot.get_emoji(569266839738384384) + + +class Colours: + white = Colour(0xFFFFFF) + blurple = Colour(0x7289DA) + gold = Colour(0xE4E415) + diamond = Colour(0xECF5FF) |