Thread:Imamadmad/@comment-3225604-20150614075030/@comment-4189499-20150614092513

Sadly, on this issue I can't help you much. To begin, I don't know much JavaScript so I can't help debug the code (I only know wikitext stuff, plus Java, python, and I managed to make something in Lua the other night). Secondly, my bot runs on different software to yours so I don't know how your bot runs with this code.

What I can say though is that stylistically, you need to fix your indentation as everything from "var questionsa" to "var answersb" looks like it is outside the if block above it, which it isn't. Also, you're trying to call variable "questions", but it hasn't been declared; only "questionsa" has been declared. I hope that helps. Anything more would require more familiarity with JS.