aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__main__.py
blob: a169257f9ba9dae639544fccd5469a86347bc189 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import logging

from bot.bot import bot
from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS
from bot.decorators import in_channel_check

log = logging.getLogger(__name__)

bot.add_check(in_channel_check(*WHITELISTED_CHANNELS, bypass_roles=STAFF_ROLES))
bot.load_extension("bot.help")
bot.load_extension("bot.seasons")
bot.run(Client.token)