Generate message from Fortune CLI and post in twitter!
Copy .env.example
to .env
and type your twitter credentials (and your phone number) on .env
.
Run yarn to install dependencies:
yarn install
Also, install fortune from package manager. E.g on Debian:
sudo apt install fortune
Build image:
docker build . --no-cache -t bot/fortune
Run:
yarn start
For debugging/dev:
yarn dev
Run:
docker run -it --rm --name tweet-fortune bot/fortune