Bot that posts random cunado-like quotes to a Slack channel. Quotes come from a Google Drive spreadsheet.
make
python 3.7
virtualenv
Run make install
Create an Slack incoming webhook
Modify settings.py with your sensitive data (only changing SLACK_URLS
you should be good for a test)
Run make run
and check if you recieve the message in slack.
To interact with your own google spreadsheet please google on how to create a credential.json for it and replace it by the included one.
Then add this bot to cron so it's triggered every work day at 12:00 PM for example (replace the cunadobot folder):
00 12 * * mon-fri cd cunadobot-folder/ && make run
Quotes will be picked from a Google Drive spreadsheet, for testing purposes settings.example.py is set to use this public one.
Use the same template to make your own.
make test
will do an isort check, flake8 and black.make isort
wil sort the imports.make black
will run black.make lint
will run flake8.make requirements
will generate a new requirements.txt file with the last requirements version.make clean
will clean the project folder from unnecessary files.make run
will run the cunadobot with the daily quote.