pianoverse.net websocket client in typescript
Go to file
2024-07-16 23:54:30 +03:00
.gitignore first commit 2024-07-16 23:54:30 +03:00
bun.lockb first commit 2024-07-16 23:54:30 +03:00
index.ts first commit 2024-07-16 23:54:30 +03:00
package.json first commit 2024-07-16 23:54:30 +03:00
pianoverse.proto first commit 2024-07-16 23:54:30 +03:00
pianoverse_pb.ts first commit 2024-07-16 23:54:30 +03:00
README.md first commit 2024-07-16 23:54:30 +03:00
tsconfig.json first commit 2024-07-16 23:54:30 +03:00

pianoverse client for TS

install

run bun add https://git.sad.ovh/sophie/pianoverse then import pianoverse

requirements

  1. bun
  2. 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")
    }
})