Discobot customized quotes

(Vimala Ayya) #1

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!

(Jeff Atwood) #2

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

(Régis Hanol) #3

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

(Vimala Ayya) #4

I changed those 10 quotes in the admin panel, which basically overrides the quotes here: discourse/server.en.yml at master · discourse/discourse · GitHub

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

(Jeff Atwood) #5

We will need to ask @tgxworld

(Alan Tan) #6

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.

Discourse Narrative Bot Quote Text Customization
(Vimala Ayya) #7

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

1 Like
(Alan Tan) #8

Nope. No work around currently for :en locale.

(Christoph) #9

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?

(fearlessfrog) #10

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

1 Like