# Discourse 叙事机器人引用文本自定义

**URL:** https://meta.discourse.org/t/discourse-narrative-bot-quote-text-customization/111437
**Category:** Support
**Created:** [2019年三月13日 01:49 UTC](https://meta.discourse.org/t/discourse-narrative-bot-quote-text-customization/111437 "2019-03-13T01:49:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fearlessfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fearlessfrog/32/119653_2.png) [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)
#### Post date: [2019年三月13日 01:49 UTC](https://meta.discourse.org/t/discourse-narrative-bot-quote-text-customization/111437/1 "2019-03-13T01:49:38Z")

</div>

We’re editing the quotes provided by the default narrative bot by searching down from the following:

`/admin/customize/site_texts?q=discourse_narrative_bot.quote`

We’ve edited the authors and quotes for the 10 quotes, but we are finding that the quotes are not changing when we use a ‘discobot quote’ command.

We’ve tried restarting the app, and then when that didn’t work rebuilding the container but we can’t get them to change. When we ask for a quote it provides the old quotes author/text, even though we have edited them all.

Is there another setting we need to change? Thanks for any help.

We are on [v2.3.0.beta4 +20](https://github.com/discourse/discourse/compare/476d0050ab80b2dfcaee6368c529f5094f14d79a...tests-passed)

---

<div class="post-metadata">

### Author: ![fearlessfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fearlessfrog/32/119653_2.png) [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)
#### Post date: [2019年三月13日 01:57 UTC](https://meta.discourse.org/t/discourse-narrative-bot-quote-text-customization/111437/2 "2019-03-13T01:57:02Z")

</div>

Ah, looks like we’ve misunderstood what those fields are for. It uses an external API to get the quotes, not local settings. That’s a shame.

> [@Discobot customized quotes](https://meta.discourse.org/t/discobot-customized-quotes/65848/6):
>
> When you’re using the english locale, Discobot fetches the quotes from an external API [http://api.forismatic.com/api/1.0/](http://api.forismatic.com/api/1.0/) which is only available in English. As a work around for other languages, we added 10 generic quotes so that they can be translated and used by the other locales.

---

<div class="post-metadata">

### Author: ![fearlessfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fearlessfrog/32/119653_2.png) [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)
#### Post date: [2019年三月13日 02:20 UTC](https://meta.discourse.org/t/discourse-narrative-bot-quote-text-customization/111437/3 "2019-03-13T02:20:16Z")

</div>

Just temporarily we altered the switch here, and it works great. Obviously not a great way to do it, but thought it might help others in the future.

> <https://github.com/discourse/discourse/blob/acd1693dac1bff6ff50250d942134bc48a27ff14/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/quote_generator.rb#L9>

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年四月12日 02:20 UTC](https://meta.discourse.org/t/discourse-narrative-bot-quote-text-customization/111437/4 "2019-04-12T02:20:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
