{"size": 741, "ext": "js", "max_stars_repo_path": "src/stages/02-entrepreneur/01-get-store-name.js", "max_stars_repo_name": "herculesgabriel/edere", "max_stars_repo_stars_event_min_datetime": "2020-07-07T15:03:49.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-07T15:03:49.000Z", "max_issues_repo_path": "src/stages/02-entrepreneur/01-get-store-name.js", "max_issues_repo_name": "herculesgabriel/edere", "max_issues_repo_issues_event_min_datetime": "2021-08-31T20:01:06.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-31T20:01:06.000Z", "max_forks_repo_path": "src/stages/02-entrepreneur/01-get-store-name.js", "max_forks_repo_name": "herculesgabriel/edere", "max_forks_repo_forks_event_min_datetime": "2020-06-29T18:42:01.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-04T23:54:47.000Z"}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": 2, "avg_line_length": 22.4545454545, "max_line_length": 109, "alphanum_fraction": 0.5964912281}
const { findClient, nextStage } = require("../../app/utils");

function execute(user, message) {
    foundClient = findClient(user);
    foundClient.name = message.trim();

    let nameArray = foundClient.name.split(" ");

    if (message.includes("ajud")) {

        return [
            "Opa, vim correndo! Olha, uma pessoa super legal já tá vindo pra bater um papo com você, tá bem?"
        ]

    } else {
        nextStage(foundClient);

        return [
            `${nameArray[0]}, é um prazer te receber aqui. Preciso de alguns dados ` +
            "para cadastrarmos o seu restaurante, fica tranquilo que será rapidinho.",
            "Agora me diz o nome do estabelecimento"
        ];
    }







}

exports.execute = execute;