This is probably not going to work well. First parameter for startGame is src (AKA a player's id), but you are sending a Bot Object.
Also, you could simply use sys.rand(0, quests.length) instead of all that Math.floor stuff.