lazerwalker / hubot-imessage

iMessage adapter for Hubot
MIT License
172 stars 31 forks source link

is their something wrong with the imessage.coffee #2

Closed runningdemo closed 10 years ago

runningdemo commented 11 years ago

since I can't receive the response from my hubot that already running with the iMessage adapter. so I add some code to iMessage.coffee to print something to check, from the result I guess something maybe wrong. Here is the code:

 run: ->
    @allowedUsers = process.env.HUBOT_IMESSAGE_HANDLES.split(",")
    Pubsub.on 'message', (channel, dataString) =>
      data = JSON.parse(dataString)
      // added some code to print things out
      for key, value in data
          console.log "#{key}: #{value}"

Then I send message "ping" from "kidliaa@gmail.com" to my robot via iMessage. My terminal output below:

   message is missing
   userId is ping
   name is value

My robot is running at:

lazerwalker commented 10 years ago

I suspect this has been fixed by the recent changes to support Mavericks — if you didn't figure this out and are still interested, perhaps give it a try now?