{"size": 978, "ext": "js", "max_stars_repo_path": "skills/start_hears.js", "max_stars_repo_name": "roccons/hw-mathbot-botkit", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "skills/start_hears.js", "max_issues_repo_name": "roccons/hw-mathbot-botkit", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "skills/start_hears.js", "max_forks_repo_name": "roccons/hw-mathbot-botkit", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.7647058824, "max_line_length": 110, "alphanum_fraction": 0.5316973415}
module.exports = function (controller) {

    /**
     * New user message
     */
    controller.on('hello', function (bot, message) {
        bot.startConversation(message, (err, convo) => {
            convo.say('Hola')
            convo.say('Soy el bot matemático y estoy aquí para ayudarte a aprender las tablas de multiplicar')
            convo.say('¿Cuánto es 2 x 2?')
        })
    })

    /**
     * 
     */
    controller.on('welcome_back', function (bot, message) {
        bot.startConversation(message, (err, convo) => {
            convo.say('Hola')
            convo.say('Soy el bot matemático y estoy aquí para ayudarte a aprender las tablas de multiplicar')
            convo.say('¿Cuánto es 2 x 2?');
        })
    });

    /**
     * Greetins
     */
    // controller.hears([
    //     'hola', 'hi', 'hello', 'halo', 'que onda', 'que tal', 'holi'
    // ], 'message_received', function (bot, message) {

    //    bot.reply(message, 'Hola!')
    // });
}