In services/receive.js, the handleTextMessage function handles the messenger input with a default handler. The variables of this function are not declared, and also in the default handler the message variable is unused.
The consistency of the variables should be defined with an event variable as handleMessage does. It would also benefit to have a comment to know where the default handler is for the messenger event.
In services/receive.js, the
handleTextMessage
function handles the messenger input with a default handler. The variables of this function are not declared, and also in the default handler themessage
variable is unused.The consistency of the variables should be defined with an
event
variable ashandleMessage
does. It would also benefit to have a comment to know where the default handler is for the messenger event.