dappros/ethora

View on GitHub
bots/translateBot/handlers/helloMessage.js

Summary

Maintainability
A
1 hr
Test Coverage
import {sendMessage} from "../actions.js";
import messages from "../config/messages.js";

export const presenceMessageHandler = (data) => {
    console.log('=> presenceMessageHandler || Message received from ', data.userJID, data.message);
    return sendMessage(
        data,
        messages.exampleBotMessage.helloPresence,
        'message',
        false,
        0,
    );
}