No description
Find a file
2020-02-07 17:15:08 +01:00
quotes Add some Parenti quotes 2020-02-07 17:15:08 +01:00
src Add some Parenti quotes 2020-02-07 17:15:08 +01:00
.gitignore Deploy via Ansible, including cronjob 2019-09-10 16:16:31 +02:00
.gitlab-ci.yml Cleanup ci script 2019-11-10 19:11:15 +01:00
ansible.cfg Deploy via Ansible, including cronjob 2019-09-10 16:16:31 +02:00
ansible.yml Add some Parenti quotes 2020-02-07 17:15:08 +01:00
env.example Initial version of communist quotes bot 2019-09-08 21:21:35 +02:00
inventory.example Added Che Guevara quotes from wikiquote 2019-11-10 07:15:27 +01:00
LICENSE Add LICENSE 2019-11-10 06:15:26 -08:00
README.md Fix debug build 2019-11-10 17:18:53 +01: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 Debug

To run the bot, execute the following commands:

$ cd communistquotes/
$ sudo docker build . -f src/Dockerfile -t communistquotes
$ sudo docker run -it --rm --name communistquotes communistquotes --debug

Deploy

You need a Mastodon/Pleroma account where the bot will post, and ssh access to a server where the Python bot will run. This can both running on the same server, or they can be seperate.

First, copy env.example to env, then enter the login information for your Mastodon/Pleroma bot account. Copy inventory.example to inventory, and enter your server's ssh address. Then run the following command:

$ ansible-playbook ansible.yml --become