Setup your league's own Fantasy Football data GroupMe chatbot to display important league data at your command. Could not have completed this without the work of @apnorton, @stmorse and @tpagliocco.
This now supports both Public and Private ESPN leagues. Private league users need to acquire cookies used for login. If you need help, check out this Chrome extension which can get the cookies for you.
-
Clone this repository and navigate to the root with the Heroku CLI.
-
Add your ESPN league ID and plug in your GroupMe ID to the app.py variables. Adjust functions to fit your league. Note that historical data requests reach back as early as 2013, you can easily extend this in the code. Private league users need to input the two cookies (swid and espn_s2) required for private league requests.
-
Log in to the Heroku CLI by calling
heroku login
-
Initialize the Heroku app by calling
heroku create your-app-name
-
To set the remote repository, call
heroku git:remote -a your-app-name
-
The repository is now linked to a new Heroku app. To deploy a new version of your app at any time, just use Git.
-
git add .
to stage your changes -
git commit -m "Description of changes here"
to commit your changes -
git push heroku master
to push your commit to Git and build it on Heroku -
To view your app's logs while it is deployed, call
heroku logs -t
. This will show the logs in realtime.
-