You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jane should be able to be configured to send messages to chat rooms based on pre-defined "triggers". Bot would poll services and conditionally send messages.
For instance, if a Jenkins build breaks, jane would notify #dev.
The text was updated successfully, but these errors were encountered:
Resource - the URL or thing Jane will keep looking at
Frequency - how often Jane should inspect the Resource
Change Condition - the way the Resource is evaluated to determine if the trigger should be activated
Activate - the code that is fired when Change Condition is true.
Subscriber - the room Jane show notify with return value of Active
From an implementation stand point I see all this wrapped in a record that is turned into a trigger_worker by a trigger_sup. The trigger_worker might be a FSM that has a timer that will call check the Resource against the Change Condition.
Jane will have a trigger command that will list all available triggers and two subcommands to register a trigger for the current room or deregister the current room. This should help deal with the inevitable problem of Jane spamming a room.
I think the development plan should be to get a working trigger_worker as a standalone module and then build out the commands and trigger_sup.
While I was playing around with processes on Friday I found this function: timer:send_after that sends a message to it's own process or a given process. Using send_after should make implementing triggers much easier.
Jane should be able to be configured to send messages to chat rooms based on pre-defined "triggers". Bot would poll services and conditionally send messages.
For instance, if a Jenkins build breaks, jane would notify #dev.
The text was updated successfully, but these errors were encountered: