1.2.3 • Published 2 years ago

bomb-party-bot v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

bomb-party-bot

A lightweight up-to-date JKLM.FUN API wrapper

Included in this package are type declarations and an abstraction for each to use be used in bot development (primarly for BombParty & PopSauce).

Disclaimer: dictionaries are not included in this package. Use bomb-party-word-searcher for a list of english words.

Installation

Install the package using npm to get started.

npm install bomb-party-bot

Usage

ES6 Typescript Example

import { generateToken, joinRoom } from "bomb-party-bot";

export async function helloWorld(roomid: string, token = generateToken(), master=false) {
	let room = await joinRoom({roomid, "username", token})

	room.on("chat", (player, message)=>{
		if (message.toLowerCase() == '!ping') {
            room.chat("Pong.")
		}
	})
}

Collaborators

UserDescription
dragonismcodeCo-authorted Pop Sauce API
1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago