# 无法完成 Discobot 高级教程的 # 部分

**URL:** <https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494>\
**Category:** Bug\
**Created:** [2023年一月12日 01:01 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494 "2023-01-12T01:01:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)\
**Post date:** [2023年一月12日 01:01 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494/1 "2023-01-12T01:01:14Z")

</div>

您好。我注意到 discobot 有一个 bug，由于新的标签系统，无法在类别中输入。机器人无法识别类别。当您想在某个账户上获得“许可”时，这很烦人。幸运的是，您可以输入 skip 来跳过此部分。

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/c/5/fc507836a4aedec0d9f76112073d09071bb33deb.jpeg)

---

<div class="post-metadata">

**Author:** ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)\
**Post date:** [2023年一月12日 01:10 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494/2 "2023-01-12T01:10:30Z")

</div>

我刚在几个有聊天的网站上试了一下，但无法重现。 🤔

有其他人能重现吗？与 `@discobot` 开始私信对话，然后输入：`start advanced tutorial`

---

<div class="post-metadata">

**Author:** ![not-ethan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/not-ethan/32/282617_2.png) [@not-ethan](https://meta.discourse.org/u/not-ethan)\
**Post date:** [2023年一月12日 01:20 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494/3 "2023-01-12T01:20:31Z")

</div>

我可以在元这里重现此问题

---

<div class="post-metadata">

**Author:** ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)\
**Post date:** [2023年一月12日 01:22 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494/4 "2023-01-12T01:22:43Z")

</div>

在此处重现（我是 Bug 报告者）

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/f/1/df130e41c39f0c2604d0d8fe1f3b1f97893e2c21.jpeg)

---

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [2023年一月12日 03:20 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494/8 "2023-01-12T03:20:11Z")

</div>

感谢您的报告，这是一个疏忽，因为我们现在使用不同的 CSS 类来处理已处理的标签：

> <https://github.com/discourse/discourse/blob/3e521a16627f49e05062ebec930d22d50df7a7b7/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/advanced_user_narrative.rb#L281-L281>

我也会更改说明，标签放在哪一行都不再重要了。我将着手修复这个问题。

---

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [2023年一月17日 00:17 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494/14 "2023-01-17T00:17:35Z")

</div>

您好 @twofoursixeight 我刚刚合并了一个修复程序：

> <https://github.com/discourse/discourse/pull/19875>
>
> The discobot advanced tutorial was failing when the new hashtags
> were enabled w…ith enable\_experimental\_hashtag\_autocomplete set
> to true, since the CSS selector is different. This commit fixes
> the issue and also changes the instructions if this is enabled since
> we no longer require the hashtag to not be at the start of the line.
> 
> c.f. https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494

我们实际上有一个测试覆盖了这种情况，但由于我最近编写迁移的方式，该测试错误地通过了。现在应该都已解决。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年四月15日 11:26 UTC](https://meta.discourse.org/t/it-is-impossible-to-complete-the-hashtag-section-of-the-discobot-advanced-tutorial/251494/15 "2023-04-15T11:26:20Z")

</div>


