scriptss

Test

Jan 17th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var Kahoot = require("kahoot.js-updated");
  2. var clients = [];
  3. for (var i = 0; i <= 800; ++i) {
  4. clients[i] = new Kahoot;
  5. }
  6. console.log("Joining kahoot...");
  7. var e = 0;
  8. for (var n in clients) {
  9. e++;
  10. clients[n].setMaxListeners(Number.POSITIVE_INFINITY)
  11. clients[n].join(435465 /* Or any other kahoot game pin */, "kahoot.js" + e);
  12. clients[n].on("joined", () => {
  13. console.log("I joined the Kahoot!");
  14. });
  15. clients[n].on("questionStart", question => {
  16. question.answer(0);
  17. });
  18. }
Add Comment
Please, Sign In to add comment