import json
import logging


def load_config() -> dict:
    """
    Loads configuration information from bot.conf.
    Specifically, bot.conf contains all information on what prefix is used
    to call the bot, which channel entries are posted in each week, which
    channel updates should be posted in, the bot key used to log in with
    discord.py, and which IDs are treated as admins.
    """

    config = json.load(open("botconf.json", "r"))

    logging.info("MAIN: Loaded bot.conf")

    return config