Sub-directory per players in same port. #177
KaffinPX posted onGitHub
Give more information
Like this: localhost/bot/KaffinPX for prismarine-viewer not main directory.
Yes Its my request Kaffin
I have a code but it crashes mostly, we need to integrate it to viewer
youre right its that
localhost:8080/bot/Fox3000 for have fp view of Fox3000
Please give more information What is the use case ? What do you expect this to do
I’ll clarify (they explained to me in Discord). Basically, since Heroku doesn’t allow for them to bind to multiple ports and they want to have multiple bots (each with its own viewer), the obvious answer is to use subdirectories (like https://example.com/bot-01 https://example.com/bot-02 and https://example.com/bot-03)
yeah its that
I think it would make sense for you to directly use the core lib to set that up You can use https://github.com/PrismarineJS/prismarine-viewer/blob/master/lib/mineflayer.js as an example