Looking into developing a crowd control type mod for a plathrough I'm planning on doing. My plan right now is to develop a twitch bot which will run locally and monitor twitch for chat messages or channel point redeems and then either expose the current effect that needs to be run via a local endpoint or to press a button combination on keyboard/gamepad when an effect is run.
With that I have a few questions:
- In flowscript is there a way to have a procedure that executes perpetually, kind of a tick function or like Update() in Unity. Or are there existing procedures in field BFs that do something similar that I could hook into.
- Is there a way to query an endpoint within flowscript? I haven't seen any mods do this in the ones I've been looking through to learn flowscript and bf modding but I figured I'd ask.
- Similar to the previous question, is there a way to check keyboard state if I need to just have the bot use a keyboard input to pass event information.
Any advice or examples you have would be much appreciated, hoping this isn't too far out of scope for what can be accomplished.