pianoverse.net websocket client in typescript
Go to file
Soph :3 039582baae
modified: README.md
modified:   package.json

im evil
2024-07-21 00:04: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 modified: README.md 2024-07-21 00:04:21 +03:00
pianoverse.proto these are minutes actually 2024-07-18 10:20:23 +03:00
pianoverse_pb.ts these are minutes actually 2024-07-18 10:20:23 +03:00
README.md modified: README.md 2024-07-21 00:04:21 +03:00
tsconfig.json first commit 2024-07-16 23:54:30 +03:00

pianoverse client for TS

install

run bun add 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")
    }
})