Discobot customized quotes

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개의 좋아요

I’d also like to be able to customize the discobot quotes to better fit my community (in English).

7개의 좋아요