bomb-party-bot
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

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

User Description
dragonismcode Co-authorted Pop Sauce API

Readme

Keywords

none

Package Sidebar

Install

npm i bomb-party-bot

Weekly Downloads

0

Version

1.2.3

License

ISC

Unpacked Size

69.9 kB

Total Files

24

Last publish

Collaborators

  • spammy2