Closed wchill closed 7 years ago
A setup like this allows us to change how Twilight runs the lights without having to restart it, switch scripts, or have some other complicated system. It also simplifies plugin development since plugins are now treated as a black box by Twilight.
For an example implementation, see https://github.com/tehp/OpenPoGoBot/blob/master/app/plugin_manager.py
How should plugins be switched? Assuming that users are submitting requests/scripts through groot, should the newest script instantaneously be loaded or should it be faded in? It seems like switching between two different imported scripts might be rather jarring on the user side
This is a small implementation detail, but it can probably be done by doing one of the following:
Closed by #11
Twilight needs a plugin system capable of dynamically loading plugins/filters for color generation and manipulation at runtime.
How this would work: