Bot that posts random cunado-like quotes to a Slack channel. Quotes come from a Google Drive spreadsheet.
make
python 3.7
virtualenvRun 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 runQuotes 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 testwill do an isort check, flake8 and black.make isortwil sort the imports.make blackwill run black.make lintwill run flake8.make requirementswill generate a new requirements.txt file with the last requirements version.make cleanwill clean the project folder from unnecessary files.make runwill run the cunadobot with the daily quote.