This is a simple bot, that will grab an RSS feed and post every new article from it as a tweet. It's based on rss-twitter-bot. I added a configuration file, and if I can make it work deployment on Docker.
- create the account you want to tweet from on twitter
- create a twitter app
- copy the default-config.json to config.json
- fill in the data
- run
node app.js
You'll need a private docker repo, or your app's keys will be visible to the world.
- as above, fill in the config file, make sure it's in the same dir as the rest
docker build -t <yourname>/<apprepo>:<tag> .
docker push <yourname>/<apprepo>
- then on the remote server
docker login
docker pull <yourname>/<apprepo>
docker run --name <yourcontainername> -p 5693:5693 -P -t -i <yourname>/<apprepo>:<tag>
That should do it. You may want to run it detached.