Only react to messages of type 'message'
Only react to messages of type 'message'

I haven't gone carefully through the various types of messages in the
API reference, but I did see this "type: 'message'" field in the JSON
when printing a message to stdout, so let's act only on that.

cworth-gh/stony