import json


def load_config(config_file="config.json"):
    """
    Load configration information from a .json file.

    In the future:
    The DISCORD_TOKEN should be read from an environment variable and the
    channel ids should be pulled down from webhooks.
    """

    conf = json.load(open(config_file))

    token = conf["DISCORD_TOKEN"]
    master_channel = conf["MASTER_CHANNEL"]
    poll_channel = conf["POLL_CHANNEL"]

    return token, master_channel, poll_channel