No description
Find a file
Jessica L. Hacker f7f14090ed Create reorganization script
1. Reads all quotes recursively from the `quotes` directory into an array.
2. Deletes the entire quotes directory.
3. For each quote ensure that there is a path for quotes/author_name/work_name/
4. Write the quote to quotes.csv in the correct directory.
2019-09-19 09:34:46 -07:00
templates Create reorganization script 2019-09-19 09:34:46 -07:00
.gitignore Deploy via Ansible, including cronjob 2019-09-10 16:16:31 +02:00
ansible.cfg Deploy via Ansible, including cronjob 2019-09-10 16:16:31 +02:00
ansible.yml Change ansible config, move files into templates folder 2019-09-12 23:34:55 +02:00
env.example Initial version of communist quotes bot 2019-09-08 21:21:35 +02:00
inventory.example Deploy via Ansible, including cronjob 2019-09-10 16:16:31 +02:00
README.md Deploy via Ansible, including cronjob 2019-09-10 16:16:31 +02:00

Communist Quotes Bot

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 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:

cd communistquotes
sudo docker run -it --rm --name communistquotes --env-file env communistquotes
sudo docker run -it --rm --name communistquotes --env-file ../env communistquotes

Deploy

Copy inventory.example to inventory, and enter your server's ssh address. Then run the following command:

ansible-playbook ansible.yml --become