pianoverse.net websocket client in typescript
Go to file
2024-08-27 20:39:18 +03:00
.gitignore update to v2 2024-08-27 20:39:18 +03:00
bun.lockb first commit 2024-07-16 23:54:30 +03:00
client.ts update to v2 2024-08-27 20:39:18 +03:00
dotproto.ts use import.meta.dirname 2024-07-17 13:20:18 +03:00
index.ts add lyrics and license 2024-07-19 03:34:58 +03:00
inspect-dump.ts update to v2 2024-08-27 20:39:18 +03:00
LICENSE add lyrics and license 2024-07-19 03:34:58 +03:00
package.json update to v2 2024-08-27 20:39:18 +03:00
pianoverse.proto update to v2 2024-08-27 20:39:18 +03:00
pianoverse_pb.ts update to v2 2024-08-27 20:39:18 +03:00
README.md update readme to be way better, and bump PV & package.json 2024-07-23 11:58:21 +03:00
tsconfig.json first commit 2024-07-16 23:54:30 +03:00

pianoverse.net protodef's and client

This contains the protocol definitions for pianoverse.net. Reversed from using protobuf_inspector on the packets sent through server and client.

Requirements

  1. Bun

Contact

Please contact me on Discord @fucksophie. I'm in the pianoverse discord. You can also find me elsewhere.

Example

The general API is styled after MPP clients, which Pianoverse has quite a lot of similarities with.

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