move credentials to .env

This commit is contained in:
muskit
2023-05-16 20:02:20 -07:00
parent 01de42a73d
commit e657f88ba0
4 changed files with 30 additions and 37 deletions
+16
View File
@@ -5,6 +5,22 @@ Twitter bot that tracks cross-company interactions between the non-JP branches o
**This project was created to run [this account](https://twitter.com/NijiHolo_EN_ID).**
## `.env`
These need to be defined in a `.env` file at the project root (outside of `src`):
```
# Scweet (scraping)
SCWEET_EMAIL=
SCWEET_USERNAME=
SCWEET_PASSWORD=
# Twitter API bot keys (posting)
api_key=
api_secret=
oauth1_access_token=
oauth1_access_secret=
bearer_token=
```
## Running modes
The bot may run in these modes:
* Catch-up (`c`): intended to run only once, scan all accounts for cross-company tweets and post them. Terminate when done posting all.