add index debug

This commit is contained in:
Tommy Parnell
2015-05-19 23:16:55 -04:00
parent e5b96e7341
commit d28fec22ac

View File

@@ -39,6 +39,7 @@ module.exports = (robot) ->
res.send "User is currently on rotation"
else
index = rotation.indexOf(res.match[1]);
res.send "index #{index}"
if index > -1
rotation.splice(index, 1)
robot.brain.set('rotation', rotation)