Discobot customized quotes

AI-generated summary

The discussion revolves around customizing Discobot’s quotes in Discourse forums. Vimala_Ayya inquired about using custom quotes by uploading a JSON file. codinghorror and zogstrip mentioned that quotes can be overridden in the config file and admin panel. However, Vimala_Ayya found that the bot fetches English quotes from an external API (http://api.forismatic.com/api/1.0/), which cannot be customized. tgxworld and Vimala_Ayya confirmed that there is no workaround for the English locale. Several users, including tophee, fearlessfrog, and outofthebox, suggested making the quote source customizable to allow admins to specify a file or settings for local quotes, which would be a great customization feature for the narrative bot.

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!

5개의 좋아요

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

3개의 좋아요

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

4개의 좋아요

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

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

We will need to ask @tgxworld

When you’re using the english locale, Discobot fetches the quotes from an external API 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.

8개의 좋아요

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

1개의 좋아요

Nope. No work around currently for :en locale.

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?

10개의 좋아요

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

6개의 좋아요

저도 디스코봇의 인용구를 커스터마이즈할 수 있으면 좋겠습니다. 제 커뮤니티(영어)에 더 잘 맞도록 조정하고 싶어요.

7개의 좋아요