- Issue created by @g.rocchini
- First commit to issue fork.
- Merge request !464Resolve #3506391 "Alter pregenerateresponseevent response" → (Open) created by marcus_johansson
- 🇩🇪Germany marcus_johansson
If you put something like this inside the PreGenerateResponseEvent event subscriber it should work:
// Logic to know it is suppose to trigger. $event->setForcedOutputObject(new ChatOutput( new ChatMessage('user', 'You have been banned!'), [], [], ));
Note that the raw output you can't really replicate, so this will first and forthmost work for any site with either a known provider or any solution that uses normalization (which should be just about any).
- 🇩🇪Germany marcus_johansson
Added this + some lines about what is possible in the PreGenerateResponseEvent in the actual documentation.