Bot with advanced Web interface

I’ve created my own Pub-Sub system on websockets (written in Go which is amazing for working with highly concurrent stuff), it’s pretty bad, took way too much time, but it sort of gets the job done - as of my current needs.
The largest problem with my solution is that I have to do a ton of security stuff myself if the application is supposed to become publicly hosted. And I don’t think I’ve got the competence for that.