pianoverse.net websocket client in typescript
Go to file
2024-07-23 11:58:21 +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 get rid of pianoverse.ServerMessage.Join and fix roles 2024-07-18 08:11:29 +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
LICENSE add lyrics and license 2024-07-19 03:34:58 +03:00
package.json update readme to be way better, and bump PV & package.json 2024-07-23 11:58:21 +03:00
pianoverse.proto update readme to be way better, and bump PV & package.json 2024-07-23 11:58:21 +03:00
pianoverse_pb.ts these are minutes actually 2024-07-18 10:20:23 +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")
    }
})