pianoverse.net websocket client in typescript
Go to file
2024-07-17 15:36:38 +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
client.ts turn this into more of a library and allow for the pianoverse_pb and .proto to be exposed 2024-07-17 12:35:47 +03:00
dotproto.ts use import.meta.dirname 2024-07-17 13:20:18 +03:00
index.ts turn this into more of a library and allow for the pianoverse_pb and .proto to be exposed 2024-07-17 12:35:47 +03:00
package.json first commit 2024-07-16 23:54:30 +03:00
pianoverse.proto add owner change packet 2024-07-17 15:36:38 +03:00
pianoverse_pb.ts first commit 2024-07-16 23:54:30 +03:00
README.md modified: README.md 2024-07-16 23:58:01 +03:00
tsconfig.json first commit 2024-07-16 23:54:30 +03:00

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

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")
    }
})