|
||
---|---|---|
.gitignore | ||
bun.lockb | ||
index.ts | ||
package.json | ||
pianoverse.proto | ||
pianoverse_pb.ts | ||
README.md | ||
tsconfig.json |
pianoverse client for TS
install
run bun add git+https://git.sad.ovh/sophie/pianoverse
then import pianoverse
requirements
- bun
- a brain
example
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")
}
})