私が送信したリンクは a.com、example.com、https://example.com、https://en.wikipedia.org/wiki/Exotic_Shorthair です。discobot は返信を停止し、数分後に「様子を見ているよ」というメッセージのみを送信します(スクリーンショットには含まれていません)。
(try.discourse.org には discobot の挨拶機能がないため、ここで再現できません)
私が送信したリンクは a.com、example.com、https://example.com、https://en.wikipedia.org/wiki/Exotic_Shorthair です。discobot は返信を停止し、数分後に「様子を見ているよ」というメッセージのみを送信します(スクリーンショットには含まれていません)。
(try.discourse.org には discobot の挨拶機能がないため、ここで再現できません)
本物のバグのようです。コードを確認した限り、oneboxチュートリアルは実際には特定の3つのリンクのみを受け入れるようになっているため、その説明は完全に誤っています。コード内にもそれに関する言及があります:
# NOTE: This can be a bit brittle if people change the site text for
# discourse_narrative_bot.new_user_narrative.onebox.instructions, or if
# the user drops some other random link, but we accept that risk for now.
found_link =
@post.raw.match(
%r{https://en\.wikipedia\.org/wiki/(Inherently_funny_word|Death_by_coconut|Calculator_spelling)},
)
Discobotチュートリアルにこれ以上投資していないことは承知していますが、それでもこれは問題があります。@martin さん、どうすべきでしょうか?少なくともフォールバックが再び機能するように、正規表現に Exotic_Shorthair リンクを追加することは可能でしょうか?
(いずれにせよ、これはバグとして移動します。)
Discobot Links are confusing in some translations にもクロスポストします。
はい、これが修正方法です。その post.raw.match の正規表現に |Exotic_Shorthair を追加するだけです。
完了しました