# Discobot customized quotes

**URL:** https://meta.discourse.org/t/discobot-customized-quotes/65848
**Category:** Feature
**Tags:** discobot
**Created:** [2017年七月8日 06:10 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848 "2017-07-08T06:10:16Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Vimala\_Ayya](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vimala\_Ayya](https://meta.discourse.org/u/Vimala_Ayya)
#### Post date: [2017年七月8日 06:10 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/1 "2017-07-08T06:10:16Z")

</div>

Of course Discobot’s quote feature is just “the icing on the cake” and not the cake itself, but is there a way to customize it to use our own quotes? Maybe by uploading a JSON file or so? We already have a random quote function on our website and would like to integrate those quotes in our Discourse forum as well. Thanks!

---

<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: [2017年七月8日 06:12 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/2 "2017-07-08T06:12:54Z")

</div>

Yes, this feature already exists in discobot, just look at the config file.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2017年七月8日 06:19 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/3 "2017-07-08T06:19:01Z")

</div>

You can also override the quotes in Cutomize \> Text Content and look for strings starting with “discourse\_narrative\_bot.quote”.

---

<div class="post-metadata">

### Author: ![Vimala\_Ayya](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vimala\_Ayya](https://meta.discourse.org/u/Vimala_Ayya)
#### Post date: [2017年七月9日 05:30 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/4 "2017-07-09T05:30:39Z")

</div>

I changed those 10 quotes in the admin panel, which basically overrides the quotes here: [discourse/plugins/discourse-narrative-bot/config/locales/server.en.yml at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/plugins/discourse-narrative-bot/config/locales/server.en.yml)

But the bot seems to get it’s quotes from somewhere else, which I cannot find. … 😞

---

<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: [2017年七月9日 06:07 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/5 "2017-07-09T06:07:40Z")

</div>

We will need to ask @tgxworld

---

<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: [2017年七月10日 05:53 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/6 "2017-07-10T05:53:11Z")

</div>

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: ![Vimala\_Ayya](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vimala\_Ayya](https://meta.discourse.org/u/Vimala_Ayya)
#### Post date: [2017年七月10日 06:25 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/7 "2017-07-10T06:25:42Z")

</div>

That’s what I suspected. So no workaround for English then?

---

<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: [2017年七月10日 23:44 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/8 "2017-07-10T23:44:04Z")

</div>

Nope. No work around currently for `:en` locale.

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [2017年七月11日 10:15 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/9 "2017-07-11T10:15:09Z")

</div>

I think customizing the bot’s quotes to be more relevant to a specific community would be great. Would it be an option to make the source for the bot’s quotes customizable, i.e. that admins can specify a file from which the quotes are supposed to be selected?

---

<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:59 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/10 "2019-03-13T01:59:00Z")

</div>

Allowing a setting to pick local quotes would be great, as a nice simple customization of the narrative bot for sites to use.

---

<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: [2020年二月28日 20:04 UTC](https://meta.discourse.org/t/discobot-customized-quotes/65848/11 "2020-02-28T20:04:05Z")

</div>

我也希望能自定义 discobot 的引用内容，以便更好地契合我的社区（使用英文）。
