You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Felix 68d8a609cb Add some Parenti quotes 7 months ago
quotes Add some Parenti quotes 7 months ago
src Add some Parenti quotes 7 months ago
.gitignore Deploy via Ansible, including cronjob 1 year ago
.gitlab-ci.yml Cleanup ci script 10 months ago
LICENSE Add LICENSE 10 months ago
README.md Fix debug build 10 months ago
ansible.cfg Deploy via Ansible, including cronjob 1 year ago
ansible.yml Add some Parenti quotes 7 months ago
env.example Initial version of communist quotes bot 1 year ago
inventory.example Added Che Guevara quotes from wikiquote 10 months ago

README.md

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