Skip to content
This repository was archived by the owner on Mar 5, 2021. It is now read-only.

Using Blooket.JS

RedYetiDev edited this page Feb 28, 2021 · 3 revisions

Using Blooket.JS

Part 1: Joining

To join a game using Blooket.js, use the following command:

game.join(PIN,"NAME","BLOOK")

This runs the join function, which then connects you to the game.

Part 2: Events

Throughout the game, blooket.js emits events. For more information on these events, see Events at blooket.js.org

Part 3: Answering

To answer a question, catch QuestionStart like so:

game.on("QuestionStart", function() {
  game.answer(game.autocorrect())
})

or

game.on("QuestionStart", function() {
  game.answer(/* Number 1-4 */)
})

Blooket.JS Wiki Page

Installing

Setup

Using

Clone this wiki locally