Closed briangonzalez closed 6 years ago
What version of macOS are you using?
10.12.6
Looks like the issue is a documentation one. This part should be:
imessage.listen().on('message', (msg) => {
console.log(`'${msg.text}' from ${msg.handle}`)
})
should be:
imessage.listen().on('message', (msg) => {
if (!msg.fromMe) console.log(`'${msg.text}' from ${msg.handle}`)
})
This also matches examples/echo.js
Here's the code I am using. I only see messages from myself.