That’s not how DiscourseEvent works - it’s not inter-process but intra-process. So the events are only captured by listeners in the same process as the one that triggered it.
In the case of the discourse automation, I just tested it locally with the following settings
and edited a post and it successfully sent the chat message

