title: How do I get a Slack message's id/timestamp from a Hubot script?
body: <p>There doesn't seem to be a <code>timestamp</code> property and the <code>id</code> property is <code>undefined</code>. Here is the hubot's plugin script code:</p>
  
  <pre><code>module.exports = (robot) -&gt;
    robot.hear /\bclocks?\b/i, (msg) -&gt;
      msg.http("https://slack.com/api/reactions.add")
        .query({
          token: process.env.SLACK_API_TOKEN
          name: "bomb"
          timestamp: msg.message.timestamp # This property doesn't exist
        })
        .post() (err, res, body) -&gt;
          console.log(body)
          return
  </code></pre>
  
  <p>The response that I get back from the Slack API is:</p>
  
  <pre><code>{"ok":false,"error":"bad_timestamp"}
  </code></pre>
  
  <p>When I log <code>msg.message</code> it looks like this:</p>
  
  <pre><code>{ user: 
    { id: 'abc123',
      name: 'travis',
      room: 'test-bots',
      reply_to: 'zyx987' },
   text: 'clock',
   id: undefined,
   done: false,
   room: 'test-bots' }
  </code></pre>
  
  <p>How can I get a timestamp or id for the message that triggered the listener?</p>