Commit 59199af4 authored by Gabriel's avatar Gabriel

Agrega mensaje al iniciar el chatbot

parent a1188b27
......@@ -17,6 +17,10 @@ async function darSiguientePaso(message, website_id, session_id) {
handlers[siguientePaso](message, userData, website_id, session_id);
}
crisp.CrispClient.userProfile.get().then(function(myProfile) {
console.log(`El chatbot esta escuchando eventos (profile name: ${myProfile.first_name})`);
});
crisp.CrispClient.on("message:send", async function (message) {
if(message.content.toUpperCase() === 'REINICIAR'){
await crisp.updateUserData(message.website_id, message.session_id, {});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment