Thank you Dan, I am glad you got it up and running!
You can check “Heroku deployment via GitHub” section near the end of this article: https://medium.freecodecamp.com/easily-set-up-your-own-twitter-bot-4aeed5e61f7f
Need to have a Procfile in the root of project, and have to manually switch on ‘worker’ service in Heroku app (from its dashboard) and switch off ‘web’.
For more Twitter Bot functionalities you can check: https://community.risingstack.com/how-to-make-a-twitter-bot-with-node-js/
If you’d like, I am also maintaining a listing of Twitter Bots build with Nodejs in a Github repo. https://github.com/amandeepmittal/awesome-twitter-bots