pianoverse/README.md

28 lines
442 B
Markdown
Raw Normal View History

2024-07-16 20:54:30 +00:00
# pianoverse client for TS
## install
run `bun add pianoverse`
2024-07-16 20:54:30 +00:00
then import `pianoverse`
## requirements
1. bun
2. a brain
## example
```ts
import { Client } from "pianoverse"
const client = new Client("https://pianoverse.net");
client.on("open", () => {
client.setRoom("Lobby")
client.setProfile("My Bot!")
})
client.on("message", (user, content) => {
if(content == "!help") {
client.message("Hi :P")
}
})
2024-07-16 20:58:01 +00:00
```