repeatafterme

command module
v0.0.0-...-e9c67ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

README

RepeatAfterMe

Retweet / Like anything from a user provided yaml list (exclude replies and retweets)

Initial requirements

  1. bot that runs as a service
  2. interacts with twitter
  3. you supply yaml list of accounts to retweet
  4. it retweets / likes anything those accounts say
  5. 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
  1. Follow This to setup your api access with twitter.
  2. 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
  1. 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)
  2. Edit /etc/repeatafterme/config.yaml and add your credentials from the API section above, and a list of users to follow.
  3. systemctl start repeatafterme
Docker
  1. Run make docker
  2. cd /opt/repeatafterme
  3. Edit the config.yaml file there (it gets mounted inside the container)
  4. then run with ./run.sh
DEB
  1. 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.
  2. Until then, follow the Golang section.
Golang / super manual (user docker or rpm for real)
  1. run go build from inside the dir
  2. Copy the resulting binary somewhere like /usr/sbin/repeatafterme
  3. mkdir -p /opt/repeatafterme
  4. mkdir /etc/repeatafterme
  5. Edit /etc/repeatafterme/config.yaml and fill in all the details
  6. Run /usr/sbin/repeatafterme, if on a persistant server run it in screen / tmux to keep it going until the server dies.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL