Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Kahoot = require("kahoot.js-updated");
- var clients = [];
- for (var i = 0; i <= 800; ++i) {
- clients[i] = new Kahoot;
- }
- console.log("Joining kahoot...");
- var e = 0;
- for (var n in clients) {
- e++;
- clients[n].setMaxListeners(Number.POSITIVE_INFINITY)
- clients[n].join(435465 /* Or any other kahoot game pin */, "kahoot.js" + e);
- clients[n].on("joined", () => {
- console.log("I joined the Kahoot!");
- });
- clients[n].on("questionStart", question => {
- question.answer(0);
- });
- }
Add Comment
Please, Sign In to add comment