28 lines
473 B
Markdown
28 lines
473 B
Markdown
# pianoverse client for TS
|
|
|
|
## install
|
|
run `bun add git+https://git.sad.ovh/sophie/pianoverse`
|
|
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")
|
|
}
|
|
})
|
|
```
|