1.2.3 • Published 2 years ago
bomb-party-bot v1.2.3
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 |