Reply bot for Discourse?

Rubyプログラミングの経験がある人にとっては、技術的には簡単です。:post_createdイベントに応答するプラグインを書き、次のようなコードを記述します。

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
「いいね!」 4