github.com/golift/imessage (go): Package imessage is used to interact with iMessage (Messages.app) on macOS  Use this library to send and receive messages using iMessage. Can be used to make a chat bot or something similar. You can bind either a function or a channel to any or all messages. The Send() method uses AppleScript, which is likely going to require some tinkering. You got this far, so I trust you'll figure that out. Let me know how it works out.  The library uses `fsnotify` to poll for db updates, then checks the database for changes. Only new messages are processed. If somehow `fsnotify` fails it will fall back to polling the database. Pay attention to the debug/error logs.
Keywords: golang|golang-library|imessage|imessage-bot|imessage-extensions|notifications