Bot pro KSP Discord
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
564 B

#!/usr/bin/env python3
from discord.ext import commands
import utils.data as data
2 years ago
import logging
logger = logging.getLogger('discord')
logger.setLevel(logging.INFO)
handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
logger.addHandler(handler)
CONFIG = data.load_json("config")
bot = commands.Bot()
cogs_list = [
'basic',
'roles',
'ksp',
]
for cog in cogs_list:
bot.load_extension(f'cogs.{cog}')
bot.run(CONFIG["token"])