Retweet / Like anything from a user provided yaml list (exclude replies and retweets)
Initial requirements
bot that runs as a service
interacts with twitter
you supply yaml list of accounts to retweet
it retweets / likes anything those accounts say
write to a local sqlite3 db the tweetid of the tweet so it doesnt repeat retweets (say that 5 times fast)
Purpose
The imagined use case is for people to follow political accounts and retweet / like everything they do to get the message out. Or just seem like a really obessesed friend that is stalking their buddy, I don't care, I am not your Dad.
How to use.
Twitter Api AccessSetup twitter api access
Follow This to setup your api access with twitter.
Grab the Consumer Key, Consumer Secret, Access Token, and Access Token Secret to be used by the service. For the Name / Description / Website put w/e you feel like. I used this github url for the website.
RPM
Compile yourself make rpm (read the Makefile to see odd setup I use, or come up with a more universal way and submit that as a PR)
Edit /etc/repeatafterme/config.yaml and add your credentials from the API section above, and a list of users to follow.
systemctl start repeatafterme
Docker
Run make docker
cd /opt/repeatafterme
Edit the config.yaml file there (it gets mounted inside the container)
then run with ./run.sh
DEB
I am super lazy, I don't use ubuntu / debian for much, if someone wants this packaged up in a DEB let me know and I can make that happen.
Until then, follow the Golang section.
Golang / super manual (user docker or rpm for real)
run go build from inside the dir
Copy the resulting binary somewhere like /usr/sbin/repeatafterme
mkdir -p /opt/repeatafterme
mkdir /etc/repeatafterme
Edit /etc/repeatafterme/config.yaml and fill in all the details
Run /usr/sbin/repeatafterme, if on a persistant server run it in screen / tmux to keep it going until the server dies.