change next

This commit is contained in:
Tommy Parnell
2015-05-19 22:49:36 -04:00
parent f1140de340
commit d865ed4626

View File

@@ -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) ->