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!

4 Likes

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

3 Likes

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

4 Likes

I changed those 10 quotes in the admin panel, which basically overrides the quotes here: 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. … :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 Likes

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

1 Like

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?

8 Likes

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

5 Likes

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

5 Likes