gabrielbrunop / haxball-server

A small server utility for Haxball
20 stars 4 forks source link

Provide different userDataDirs per bot? #11

Open iwishiknewcoding opened 1 year ago

iwishiknewcoding commented 1 year ago

Hello @gabrielbrop, I currently have several hosts with their own userDataDir-s. Can I somehow provide correct dirs to each of the bots? From the current implementation, I think we can only pass a single dir that will be shared across bots, is that correct?

gabrielbrunop commented 1 year ago

Yes, you can only pass a single dir and it'll be shared by all rooms. By the way, I recommend using some real database like MySQL or MongoDB instead of localStorage.