diff options
Diffstat (limited to 'bot/constants.py')
| -rw-r--r-- | bot/constants.py | 76 | 
1 files changed, 72 insertions, 4 deletions
diff --git a/bot/constants.py b/bot/constants.py index 7c2561a7..4294b8e1 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -1,5 +1,73 @@ -import os +import logging +from os import environ +from typing import NamedTuple -HACKTOBER_CHANNEL_ID = 414574275865870337 -HACKTOBER_VOICE_CHANNEL_ID = 514420006474219521 -GIPHY_TOKEN = os.environ.get("GIPHY_TOKEN") +from bot.bot import SeasonalBot + +__all__ = ('Client', 'Roles', 'bot') + +log = logging.getLogger(__name__) + + +class Channels(NamedTuple): +    admins = 365960823622991872 +    announcements = 354619224620138496 +    big_brother_logs = 468507907357409333 +    bot = 267659945086812160 +    checkpoint_test = 422077681434099723 +    devalerts = 460181980097675264 +    devlog = 409308876241108992 +    devtest = 414574275865870337 +    help_0 = 303906576991780866 +    help_1 = 303906556754395136 +    help_2 = 303906514266226689 +    help_3 = 439702951246692352 +    help_4 = 451312046647148554 +    help_5 = 454941769734422538 +    helpers = 385474242440986624 +    message_log = 467752170159079424 +    mod_alerts = 473092532147060736 +    modlog = 282638479504965634 +    off_topic_0 = 291284109232308226 +    off_topic_1 = 463035241142026251 +    off_topic_2 = 463035268514185226 +    python = 267624335836053506 +    reddit = 458224812528238616 +    staff_lounge = 464905259261755392 +    verification = 352442727016693763 + + +class Client(NamedTuple): +    guild = int(environ.get('SEASONALBOT_GUILD', 267624335836053506)) +    prefix = "." +    token = environ.get('SEASONALBOT_TOKEN') +    debug = environ.get('SEASONALBOT_DEBUG', '').lower() == 'true' +    season_override = environ.get('SEASON_OVERRIDE') + + +class Hacktoberfest(NamedTuple): +    channel_id = 498804484324196362 +    voice_id = 514420006474219521 + + +class Roles(NamedTuple): +    admin = 267628507062992896 +    announcements = 463658397560995840 +    champion = 430492892331769857 +    contributor = 295488872404484098 +    developer = 352427296948486144 +    devops = 409416496733880320 +    jammer = 423054537079783434 +    moderator = 267629731250176001 +    muted = 277914926603829249 +    owner = 267627879762755584 +    verified = 352427296948486144 +    helpers = 267630620367257601 +    rockstars = 458226413825294336 + + +class Tokens(NamedTuple): +    giphy = environ.get("GIPHY_TOKEN") + + +bot = SeasonalBot(command_prefix=Client.prefix)  |