I want to automaticly send a reply after someone hast starded a discussion..
I dont know much about the system behind flarum but i found in the core the code:
// Now that the discussion has been created, we can add the first post.
// We will do this by running the PostReply command.
try {
$post = $this->bus->dispatch(
new PostReply($discussion->id, $actor, $data)
);
} catch (Exception $e) {
$discussion->delete();
throw $e;
}
in the StartDiscussionHandler.php
How can I execute the PostReply a second time with own content and user..?
Sorry my english is not the best and im very new to this but i try to understand ?