def configure(config):
    """Interactively configure the bot's ``[core]`` config section.

    :param config: the bot's config object
    :type config: :class:`~.config.Config`
    """
    config.core.configure_setting('nick', 'Enter the nickname for your bot.')
    config.core.configure_setting('host', 'Enter the server to connect to.')
    config.core.configure_setting('use_ssl', 'Should the bot connect with SSL?'
        )
    if config.core.use_ssl:
        default_port = 6697
    else:
        default_port = 6667
    config.core.configure_setting('port', 'Enter the port to connect on.',
        default=default_port)
    config.core.configure_setting('owner',
        "Enter your own IRC name (or that of the bot's owner)")
    config.core.configure_setting('channels',
        'Enter the channels to connect to at startup, separated by commas.')
    config.core.configure_setting('commands_on_connect',
        "Enter commands to perform on successful connection to server (one per '?' prompt)."
        )
