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.
Install the package using npm to get started.
npm install bomb-party-bot
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.")
}
})
}
User | Description |
---|---|
dragonismcode | Co-authorted Pop Sauce API |