This is a Twitter bot that is capable of retweeting non-retweets and non-replies from specific accounts.
To install the requirements from the project directory, run pip install -r requirements.txt
.
In the auth
directory, create a file called credentials.json
based on the template provided and supply the required information.
In the data
directory, create a file called users.json
based on the template provided and supply the IDs of the users to retweet.
In the data
directory, create a file called settings.json
based on the template provided and supply the settings desired.
These are the currently supported settings (in settings.json
) and the values they can take.
- log_level: Specifies the level of logging to display in the log file. Supported values are
warning
,info
, anderror
. Invalid values will default toerror
.
To run the program, use the command python3 bot/bot.py
from the parent directory.
Log contents will be output to log.txt
in the top-level directory of the repository.
If your credentials.json
, filters.json
, or settings.json
files have their contents changed, make sure you restart the application.