From d865ed4626c3121a2eb8c1a4ccda05eb172e4c22 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Tue, 19 May 2015 22:49:36 -0400 Subject: [PATCH] change next --- scripts/q.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/q.coffee b/scripts/q.coffee index 7857439..6119eb3 100644 --- a/scripts/q.coffee +++ b/scripts/q.coffee @@ -50,7 +50,8 @@ module.exports = (robot) -> robot.respond /q next/i, (res) -> rotation = robot.brain.get('rotation') current = robot.brain.get('current') - if current == null || typeof current == "undefined" + if current == null + res.send("no q boss found") current = roation[0] else location = rotation.indexOf current @@ -59,7 +60,7 @@ module.exports = (robot) -> else current = rotation[location + 1] robot.brain.set('current', current) - robot.messageRoom ROOM, "#{current} is now Queue boss" + #robot.messageRoom ROOM, "#{current} is now Queue boss" # robot.hear /badger/i, (res) ->