blob: 5ac6b33e2f766e581481fdfe89658c98fe199991 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import logging
from bot.bot import bot
from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS
from bot.decorators import in_channel_check
from bot.seasons import get_extensions
log = logging.getLogger(__name__)
bot.add_check(in_channel_check(*WHITELISTED_CHANNELS, bypass_roles=STAFF_ROLES))
for ext in get_extensions():
bot.load_extension(ext)
bot.run(Client.token)
|