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.

30 lines
969 B

#!/usr/bin/env python3
from discord.ext import commands
import as data
import logging
import os
data.DATA_FOLDER = os.environ.get("HROCHOBOT_DATA", 'data')
LOG_FOLDER = os.environ.get("HROCHOBOT_LOG", '.')
CONFIG_FOLDER = os.environ.get("HROCHOBOT_ETC", '.')
logger = logging.getLogger('hrochobot')
handler = logging.FileHandler(filename=os.path.join(LOG_FOLDER, 'hrochobot.log'), encoding='utf-8', mode='w')
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
CONFIG = data.load_json(os.path.join(CONFIG_FOLDER, "config"))
bot = commands.Bot()
cogs_list = CONFIG["enabled_cogs"]
for cog in cogs_list:
async def statistics(interaction):"{interaction.user} ({}) used command {['name']}.")["token"])