1.0.7 • Published 5 months ago

kahoot.js-latest v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

About

Kahoot.js is a library to interact with the Kahoot API. kahoot.js supports joining and interacting with quizzes and challenges. Installation requires Node.js 10.9.0 or higher.

HitCount Known Vulnerabilities Version

Basic Example

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/.

1.0.7

5 months ago

1.0.6

6 months ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago