Answer, Join Kahoot Quizzes with nodejs
npm install kahoot.js-latestjs
const Kahoot = require("kahoot.js-latest");
const client = new Kahoot();
console.log("Joining kahoot...");
client.join(9802345 / Replace with kahoot game pin /, "kahoot.js");
client.on("Joined", () => {
console.log("I joined the Kahoot!");
});
client.on("QuizStart", () => {
console.log("The quiz has started!");
});
client.on("QuestionStart", question => {
console.log("A new question has started, answering the first answer.");
question.answer(0);
});
client.on("QuizEnd", () => {
console.log("The quiz has ended.");
});
`
Full API Documentation
See Documentation.md.
Examples
See examples/ and tests/`.