Skip to content

Commit

Permalink
chore(script): Send message to
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Jun 17, 2016
1 parent 583516c commit 3f6150a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ module.exports = (robot) ->
toggl.updateTimeEntriesTagsAsync data.teIds, tags, action
.then () ->
res.send message
welcome = "#{msg.message.user.name} close tasks successfull"
robot.messageRoom("#random", "#{welcome}\n#{message}")
.catch (err) ->
res.reply "an error occurred in toggl"
robot.emit "error", err

0 comments on commit 3f6150a

Please sign in to comment.