From edf267e4f1d948656c50cf25a51696baeb783851 Mon Sep 17 00:00:00 2001 From: Christopher Kolmatycki Date: Wed, 15 Jun 2016 22:18:09 -0400 Subject: [PATCH] Made can't find group line easier to understand Changed msg.send "Oops, can't find anyone with 'a #{group} member' role!" to msg.send "Oops, can't find anyone with a '#{group}' member role!" Better reflects emphasis on the variable as it is '#{group}' that is the user input, not 'a #{group} member'. i.e. A user types hubot standup for engineering not hubot standup for a engineering member Might seem pedantic but it confused me for a bit while troubleshooting why the 'standup for' command isn't working for me. --- src/scripts/standup.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/standup.coffee b/src/scripts/standup.coffee index 8437383..cddbf06 100644 --- a/src/scripts/standup.coffee +++ b/src/scripts/standup.coffee @@ -42,7 +42,7 @@ module.exports = (robot) -> msg.send "Ok, let's start the standup: #{who}" nextPerson robot, room, msg else - msg.send "Oops, can't find anyone with 'a #{group} member' role!" + msg.send "Oops, can't find anyone with a '#{group}' member role!" robot.respond /(?:that\'s it|next(?: person)?|done) *$/i, (msg) -> unless robot.brain.data.standup?[msg.message.user.room]