dappros/ethora

View on GitHub
bots/botTemplate/handlers/leave.js

Summary

Maintainability
A
1 hr
Test Coverage
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,
    );
}