A quick follow up after looking at your source data:
Add the he
package (“html entities”) in package.json and use
const he = require('he');
Then to get the text of your facts:
let posts = json.tumblr.posts.post
.filter(p => p["regular-body"] != null)
.map(p => he.decode(p["regular-body"]));
Updated project to show the output:
https://tumblr-xml-api-json.glitch.me/
Then your remaining challenge is picking one at random, which has been covered before on this forum: Need help with discordjs bot - #2 by 123HD123