Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Latest commit

 

History

History
21 lines (18 loc) · 554 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 554 Bytes

kahooteer

Node.js module which gives you the ability to interact with the kahoot API.

Installation

npm install kahooteer

Usage

const kahooteer = require('kahooteer');

const Client = new kahooteer('xxxxxx', 'kahooteer'); // this accepts an invite link or a pin.

Client.Join()
 	.then(() => {
		console.log(`We are in-game as ${Client.PlayerName}!`)
	})
	.catch((reason) => console.log(`Couldn't join game session: ${reason}`));

Documentation

Not done yet, but you can look on the scripts on the /test folder for an example.