             events.on('events', (message) ->
                 console.log('A message was ' + message.operation);
                 console.log('Text: ', message.model.text);
-                repost(room.id, message.model.text)
+                parseMessage(room.id, message.model.text)
             )
         )
 
-    repost = (roomid, text) ->
+    parseMessage = (roomid, text) ->
         message = ''
-        #console.log('reposting', text)
+
+        clearTimeout timeoutHandle
 
         comment = /\[Github\] (\w[\w-]+) commented in (.+?\/.+?) on issue: (.*?) http.*?\/(\d+)#.*/
         # name:1; reponame:2; issuename:3; issueid:4


module.exports = (robot) ->
    gitter = new Gitter(process.env.HUBOT_GITTER2_TOKEN)

    for roomName in roomNames
        #console.log(roomName)

            console.log(m)
            message = pushimg + vsprintf('%1$s pushed %2$s commit(s) to [%3$s](https://github.com/%3$s/): [\[compare\]](%4$s)', m)

        console.log(' -->', message)

        # store message and wait in case new messages come soon
        if message != ''
           store[roomid].push message
           timeoutHandle = setTimeout repostMessage, timeoutDuration, roomid
           console.log(' ---> timeout handle', timeoutHandle)

    # when timeout resolves, repost all captured messages
    repostMessage = (roomid) ->

        console.log(' ---> time out; reposting', roomid)

        robot.send
            room: roomid
            store[roomid].join '\n'

        store[roomid] = []

    return
