This commit is contained in:
Tommy Parnell
2015-05-19 22:42:31 -04:00
parent f6122d2b26
commit 2bf5158525

View File

@@ -32,10 +32,10 @@ module.exports = (robot) ->
current = roation[0]
else
location = rotation.indexOf current
if location < 0 || location == (rotation.length - 1)
current = rotation[0]
else
current = rotation[location + 1]
if location < 0 || location == (rotation.length - 1)
current = rotation[0]
else
current = rotation[location + 1]
robot.brain.set('current', current)
robot.messageRoom ROOM, "#{current} is now Queue boss"