Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Send a typing notification on 🍺 lookup
Browse files Browse the repository at this point in the history
Works only with the hubot-slack v4 adapter
  • Loading branch information
andersonshatch committed Jan 30, 2017
1 parent 78b14ca commit f2ceba7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/beerbods.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ module.exports = (robot) ->
@untappdClientSecret = process.env.HUBOT_BEERBODS_UNTAPPD_CLIENT_SECRET

lookupBeer = (message, config) ->
#Send a typing notification (slack v4 adapter only)
robot.adapter?.client?.rtm?.sendTyping(message.message.room)

message.http("#{url}#{config.path}").get() (error, response, body) ->
if error
respondWithError message, config
Expand Down

0 comments on commit f2ceba7

Please sign in to comment.