botpress / botpress-electron

This converts the Botpress binaries into a binary downloader / installer / runner
MIT License
0 stars 2 forks source link

Feature - make custom modules easier to test out #14

Open ptrckbp opened 2 years ago

ptrckbp commented 2 years ago

There are many improvements we can do here!

It takes too much time to write changes to a custom module and check the result in Botpress.

1) We point to the source folder, and it's automatically imported into botpress on changes 2) We point to a tgz file, and botpress is reloaded with the module whenever it's updated.

There is another issue : Right now, closing Botpress and re-opening it, means you lose all your current session state. We could have Botpress re-open at the last page it was at.

An alternative option would be to have a menu function that "exports" a bot / global code into a custom module template or fetches its actions and hooks. This might cover 70% of use cases, but would be seriously convenient because you could test your changes live in the studio.

ptrckbp commented 2 years ago

Can also have a menu button to create a folder from the boilerplate template that is immediately hooked up to botpress for convenience.