dappros/ethora

View on GitHub
bots/huthut/handlers/frontTurnMe.js

Summary

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

export const frontTurnMeHandler = (data) => {
    console.log('=> frontTurnMe | Message received from ', data.receiver, data.message);
    userSteps('setStep', data.receiver, 3);
    return sendMessage(
        data,
        messages.visitingHut.openingHut,
        'message',
        false,
        0,
    );
}