# Discobot 标记步骤需要任意标记，但“其他”除外

**URL:** https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974
**Category:** Feature
**Created:** [2018年四月10日 13:12 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974 "2018-04-10T13:12:39Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)
#### Post date: [2018年四月10日 13:12 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/1 "2018-04-10T13:12:39Z")

</div>

Hi, when running through the discobot new user tutorial, there is a prompt to flag a very mean message. However, if the kind of flag chosen is not “inappropriate” but one of the other options, the tutorial hangs. I don’t see a way to add _another_ flag to the post once it has been flagged for another reason besides “inappropriate.” Is there a way for discobot to say, “You flagged my post, but not for being _inappropriate_. Let’s try again!”

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年四月11日 04:40 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/2 "2018-04-11T04:40:47Z")

</div>

That isn’t a bug; the instructions indicate which flag type to use. So at best this would be an enhancement.

(also @tgxworld I’d expect any flag type to work, really.. except contact staff which is a different thing.)

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [2018年四月11日 07:22 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/3 "2018-04-11T07:22:22Z")

</div>

> [@codinghorror](#):
>
> I’d expect any flag type to work, really… except contact staff which is a different thing.)

I agree with this 100%. If I had an instance where I wanted some of the flag options (including the inappropriate one) hidden via CSS, discobot would essentially be broken aside from overriding the step completely and telling the user to skip. Edge case of course, but it would be nice to allow all types of flags for that step 🙂

---

<div class="post-metadata">

### Author: ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)
#### Post date: [2018年四月11日 12:31 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/4 "2018-04-11T12:31:14Z")

</div>

> [@tshenry](#):
>
> Edge case of course, but it would be nice to allow all types of flags for that step

Yea, especially because it is designed to help a new user feel comfortable flagging a post. Setting them up for success = winning.

I’m comfortable calling this a feature rather than a bug - I see the point.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2018年四月17日 08:40 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/6 "2018-04-17T08:40:23Z")

</div>

This is strange because I [made the bot respond to all none custom flag types](https://github.com/discourse/discourse/blob/master/plugins/discourse-narrative-bot/plugin.rb#L204) when the tutorial was added.

Are there any specific steps you took when you got stucked? Currently I’m unable to reproduce this locally or on your site.

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [2018年四月17日 09:56 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/7 "2018-04-17T09:56:03Z")

</div>

I tried here on Meta with the “ **Something Else** ” flag and it does break the flagging step. Based on `flag_types_without_custom.values,` I’m assuming selecting the “ **Something Else** ” option doesn’t work since there is a custom value involved.

I really like that flag given its versatility. While I can’t think of a true downside to having all of the flag options visible, I have considered hiding all but “ **Something Else** ” and modifying the text to further convey a general usage. Just a simpler UI presentation to users.

If allowing the “ **Something Else** ” flag to continue the step is not an option (it would be nice if it was 🙂), I guess another idea would be to hide it or disable it specifically for the discobot tutorial.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年四月17日 20:43 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/8 "2018-04-17T20:43:49Z")

</div>

So @outofthebox I dispute the premise of this topic; almost any flag type will work except “something else” which is a PM to staff and requires typing in a custom reason.

Also in the discobot narrative, **the user is explicitly told to use the “offensive” flag type** , on top of that.

---

<div class="post-metadata">

### Author: ![notriddle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/notriddle/32/133055_2.png) [@notriddle](https://meta.discourse.org/u/notriddle)
#### Post date: [2018年四月17日 21:35 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/9 "2018-04-17T21:35:01Z")

</div>

> [@codinghorror](#):
>
> So @outofthebox I dispute the premise of this topic; almost any flag type will work except “something else” which is a PM to staff and requires typing in a custom reason.

The problem isn’t that something-else doesn’t work (it’d be fine if Discobot replied back with “Oh no! You didn’t use the right flag type!” the same way it does when you reply without flagging the post). The problem is that, when the user takes this ill-advised action, the tutorial becomes deadlocked instead of giving them a chance to try again.

By the way, I’m actually able to un-deadlock the tutorial by posting a reply and then flagging Discobot’s “oh no, my nasty post hasn’t been flagged yet” response 😄

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2018年四月17日 21:50 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/10 "2018-04-17T21:50:36Z")

</div>

> [@notriddle](#):
>
> The problem is that, when the user takes this ill-advised action, the tutorial becomes deadlocked instead of giving them a chance to try again.

Shouldn’t be the case – the bot will post a “hey, haven’t seen you in a while, want to continue?” message eventually.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2018年四月17日 23:19 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/11 "2018-04-17T23:19:41Z")

</div>

Yeah, but that’s still a soft lock and requires a “skip” command to keep going.

---

<div class="post-metadata">

### Author: ![outofthebox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/outofthebox/32/83708_2.png) [@outofthebox](https://meta.discourse.org/u/outofthebox)
#### Post date: [2018年四月18日 00:01 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/12 "2018-04-18T00:01:46Z")

</div>

The bot is designed for a new user who feels uncomfortable with forum software so they try discobot to learn the ropes, right? I think if there are ways the new user can make discobot fail, that is an area worth improving, if the resources required to do it aren’t unreasonably high.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2020年一月8日 19:40 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/13 "2020-01-08T19:40:08Z")

</div>

> [@codinghorror](#):
>
> 不应该出现这种情况——机器人会发布一条消息：“嘿，有一段时间没见到你了，想继续吗？”

我刚刚在 [https://try.discourse.org](https://try.discourse.org) 上测试了这一点。如果选中了“其他情况”标志，教程不会恢复——用户不会收到任何指示。用户可以通过发布 `@discobot resume tutorial` 来恢复教程。

当教程恢复时给出的回复并不清晰：

> 哦不，我那篇讨厌的帖子还没被标记。你能用 **标记** （图标）将其标记为不合适吗？

这条回复应该让用户知道他们需要标记最新的 discobot 帖子。用户无法标记 discobot 所提到的那篇“讨厌”的帖子。

编辑：也许我在失败的标记步骤后没有等待足够长的时间让教程恢复。我等了几分钟，但在 try 网站上，discobot 发布“刚来检查一下，因为有一段时间没收到你的消息”这条帖子似乎需要 10 分钟。

---

<div class="post-metadata">

### Author: ![adamengst](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adamengst/32/116607_2.png) [@adamengst](https://meta.discourse.org/u/adamengst)
#### Post date: [2020年三月17日 21:26 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/14 "2020-03-17T21:26:56Z")

</div>

我想插一句——我刚才就遇到一个用户因此感到困惑。当然，他没有完全按照说明操作，但这个教程本可以更具容错性，并能更快恢复。

---

<div class="post-metadata">

### Author: ![meiadeleite](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meiadeleite/32/139417_2.png) [@meiadeleite](https://meta.discourse.org/u/meiadeleite)
#### Post date: [2020年五月23日 19:09 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/15 "2020-05-23T19:09:20Z")

</div>

我们遇到了同样的问题。我们的一些成员将 Discobot 的消息标记为“其他”，因为他们认为应该这样做，结果卡在了教程中。☹ 似乎没有明显的方法让新手在错误标记后返回并重新标记该帖子，这让他们感到困惑和沮丧。

或许可以将“其他”标记视为教程的一部分，以避免这种僵局？

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2020年七月7日 20:14 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/16 "2020-07-07T20:14:46Z")

</div>

4 篇帖子已移至新主题：[Discobot 教程在选择“其他”标志类型时会卡住](https://meta.discourse.org/t/discobot-tutorial-gets-stuck-if-something-else-flag-type-is-selected/157075)

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [2020年八月4日 18:28 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/17 "2020-08-04T18:28:08Z")

</div>

当选择“其他”类型时，Discobot 不应再在此处卡住。

> [@Discobot tutorial gets stuck if 'something else' flag type is selected](https://meta.discourse.org/t/discobot-tutorial-gets-stuck-if-something-else-flag-type-is-selected/157075/13?u=blake):
>
> I have created a fix for this so that discobot checks for the correct flag type. If the incorrect flag is used, it will reply letting the user know they didn’t quite do it right and it will remove the bad flag so that the user can try again. Here is a demo of how it behaves now: [unicorn]

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [2020年八月4日 18:28 UTC](https://meta.discourse.org/t/discobot-flag-step-requires-any-flag-except-something-else/84974/18 "2020-08-04T18:28:13Z")

</div>


