       items = baseResult.Item
 
       if totalResults is 0
-        msg.send "#{query}は最近リリースされてないよー"
+        nothingCallBack
         return
 
       for item in items
         baseItem = item.ItemAttributes[0]
-        msg.send "#{baseItem.Title[0]}が見つかったよー。¥n発売日は #{if isKindle then baseItem.ReleaseDate[0] else baseItem.PublicationDate[0]}だよー¥n#{item.DetailPageURL[0]}"
+        callback {
+          title: baseItem.Title[0],
+          releaseDate: if isKindle then baseItem.ReleaseDate[0] else baseItem.PublicationDate[0],
+          url: item.DetailPageURL[0]
+        }
 
       if page < totalPages and page < 10
-        setTimeout(this.search, 5000, msg, query,isKindle,month, page + 1)
+        setTimeout(this.search, 5000, query,isKindle,month, page + 1,callback, nothingCallBack)
 
     ).catch((err) ->
       console.log("error:", err)

newReleaseSearch = (msg,query,isKindle) ->
  monthBeforeLast = moment().add(-2,'M').format('MM-YYYY')
  # 検索の実行
  amazonSearch.search(msg, query, isKindle ,monthBeforeLast, 1)

module.exports = (robot) ->



    this.operationHelper = new OperationHelper(config)

  search: (query, isKindle, month, page, callback, nothingCallBack) ->

    binding = if isKindle then 'kindle' else 'not kindle'

