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!
Yes, this feature already exists in discobot, just look at the config file.
You can also override the quotes in Cutomize > Text Content and look for strings starting with “discourse_narrative_bot.quote”.
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. …
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.
That’s what I suspected. So no workaround for English then?
Nope. No work around currently for
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?
Allowing a setting to pick local quotes would be great, as a nice simple customization of the narrative bot for sites to use.