C’est techniquement facile pour quelqu’un ayant une certaine expérience en programmation Ruby. Écrivez simplement un plugin, en répondant à l’événement :post_created, écrivez du code comme ceci :
DiscourseEvent.on(:post_created) do |*params|
post, opt, user = params
if post.raw.include "foo"
PostCreator.create!(
User.find_by(id: bot_id),
topic_id: post.topic_id,
raw: "bar",
)
end
end