Project Euler Bot A Discord bot that retrieves random Project Euler problems from projecteuler.net let fetchProblem = (message) => { fetch(`${randomProblem()}`) .then((response) => response.text()) .then(html => (new JSDOM(html)).window.document.getElementById(content_id).textContent) .then(text => message.channel.send(String.raw`${text}`)) Add to Your Server Then simply mention @Project Euler Bot and he will fetch you a problem to work on! Local Installation git clone git@github.com:carlcorder/project-euler-bot.git cd project-euler-bot npm install node . Heroku Deployment heroku login heroku git:clone -a project-euler-bot cd project-euler-bot git push heroku master # stop web dyno and start a service worker heroku ps heroku ps:scale web=0 heroku ps:scale worker=1 heroku logs --tail