To run.
- Edit the credentials in post_daily_threads.py.
- Edit your yaml file for your sub, you can see examples of the football and hockey one in sub.
- Make sure you have wikis set up for each job. It looks in
/wiki/ffbot/wiki_ame
by default. Wiki name is defined in the credentials. The bot pulls the text for the post from wikis then adds the index charts underneath the text thats in the wikis. - Run the python script on some sort of chron job
python post_daily_threads fantasyfootball.yaml
. I personally use a jenkins build. However, it can work from anywhere.
Disclaimer
- This code was written... like 6 years ago. I would do things a lot differently these days. It isnt my best work but it does the job.