Skip to content

Commit

Permalink
Merge pull request #7 from sfc-arch/feature/remove-deprecated
Browse files Browse the repository at this point in the history
Add ping scripts and switch critical to default log level
  • Loading branch information
miyukki committed Jul 2, 2015
2 parents 224c82b + 5cac0ea commit e208c3a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hubot
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"

exec node_modules/.bin/hubot "$@"
HUBOT_LOG_LEVEL=CRITICAL exec node_modules/.bin/hubot "$@"
8 changes: 8 additions & 0 deletions bin/hubot-debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

set -e

npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"

exec node_modules/.bin/hubot "$@"
3 changes: 3 additions & 0 deletions scripts/ping.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = (robot) ->
robot.hear /^ping$/, (msg) ->
msg.send "pong"

0 comments on commit e208c3a

Please sign in to comment.