Skip to content

Commit

Permalink
Add more greetings to shep
Browse files Browse the repository at this point in the history
  • Loading branch information
sklise committed Sep 12, 2012
1 parent b87b202 commit 02a3175
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/manners.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Description:

# Commands:
# hi|hello|hey shep - teach Shep to say hi
# shep thank you - Make Shep say you're welcome
module.exports = (robot) ->
robot.hear /hi shep/, (msg) ->
robot.hear /^(hi|hello|hey)( shep)?/i, (msg) ->
msg.send "Hi #{msg.message.user.name}"
robot.respond /thank you$|thanks$/i, (msg) ->
msg.send "You're welcome, #{msg.message.user.name}"

0 comments on commit 02a3175

Please sign in to comment.