bots/translateBot/handlers/leave.js
import {sendMessage, userSteps} from "../actions.js";
import messages from "../config/messages.js";
export const leaveHandler = (data) => {
console.log('=> leaveHandler | Message received from ', data.userJID, data.message);
userSteps('setStep', data.userJID, 1);
return sendMessage(
data,
messages.exampleBotMessage.leaveMessage,
'message',
false,
0,
);
}