communistquotes/README.md

35 lines
983 B
Markdown
Raw Normal View History

# Communist Quotes Bot
2019-09-08 23:48:37 +00:00
A Fediverse bot that posts random quotes from different communists.
You can check it out here: https://impenetrable.fortress.promo/communistquotes
## Contribute Quotes
Edit the file [communistquotes/marxistquotes.csv](communistquotes/marxistquotes.csv) and
make an MR.
## Compile and Run
First, copy `env.example` to `env`, then enter your actual login information. To run the bot,
execute the following commands:
```bash
cd communistquotes/templates/
sudo docker build . -t communistquotes
sudo docker run -it --rm --name communistquotes --env-file ../env communistquotes --debug
```
2019-09-10 14:16:31 +00:00
## Deploy
Copy `inventory.example` to `inventory`, and enter your server's ssh address. Then run the following command:
```
ansible-playbook ansible.yml --become
2019-09-19 16:49:12 +00:00
```
## Options
Custom flags can be used when running `main.py`:
`--debug`: Dont actually login or post to the remote API
`--nomastodon`: Run without loading anything that requires the Mastodon library.