Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split reading components to separate functional parts being overlay and bulb #52

Open
bravecobra opened this issue Dec 31, 2018 · 0 comments

Comments

@bravecobra
Copy link

If I understood it correctly during stream, currently there is only one local chat reading component that would then trigger both the overlay color changing and bulb changing part. Both are different components who just happen to have the same input, being the command in the chat.

Adding a chat reading component in Azure would separate the whole bulb part from the overlay part. Both would read the twitch chat as input, thus separating the functional concerns. You could trigger both local and online services without depending on your local service to be running. In the Azure reading component you could build in a safe guard to trigger only when streaming.

So you would want 2 chat readers, one running on Azure and another running locally. Those would spit out events that you can hook into. On the local reader you can hook in the overlay change by subscribing to the chat command event. On the online reader you can hook in the bot-sending by subscribing to the same chat event.
That way the overlays and the light bulb are completely separated and won't influence each other.

Another option would be to read the input from same online event and trigger on that, instead of having a local reader at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant