Skip to content

A Telegram/GroupMe/Slack/Discord Bot for Sleeper fantasy leagues

License

Notifications You must be signed in to change notification settings

luiscachog/sleeper-stats-bot

 
 

Repository files navigation

Version Build Status Version GitHub issues

This project was inspired by https://github.com/dtcarls/ff_bot.

Welcome to sleeper-ff-bot 👋

A GroupMe/Slack/Discord Bot for Sleeper fantasy leagues. It sends messages on the schedule below.

Current Schedule

  • Thursday:
    • 7pm ET Matchups for the week.
  • Friday:
    • 12pm ET Scores (Only does half ppr scores for now)
  • Sunday:
    • 7pm ET Close games.
  • Monday:
    • 12pm ET Scores (Only does half ppr scores for now)
    • 3pm ET Miracle Monday! Displays the close games with the number of playes remaining for each roster.
  • Tuesday:
    • 11am ET league standing.
    • 11:01am ET Highest scoring team, lowest scoring team, most points left on the bench, and teams that started players that scored negative.

Setup

  1. GroupMe
  2. Slack
  3. Discord

GroupMe

  • Step 1: Go to https://dev.groupme.com/ and log in using your groupme account.
  • Step 2: Click the bots tab.
  • Step 3: Click the "Create Bot" button.
  • Step 4: Choose the groupchat that the bot will be in and the Name of the bot and click "Submit". Everything else can be left empty.
  • Step 5: Remember the bot_id as you will need it in the next step.

  • Step 6: Follow directions to launch the bot on a Heroku server here

Slack

  • Step 1: Go to https://api.slack.com/apps and click "Create New App".
  • Step 2: Choose the name you want to call the FF bot, choose your workspace, and click "Create App".
  • Step 3: Click the "Incoming Webhooks" button.

  • Step 4: Click the "Off" toggle button so it says "On".

  • Step 5: Click the "Add New Webhook to Workspace" button.

  • Step 6: Select the channel to post to and click "Install".
  • Step 7: Remember the webhook that appears under the "Webhook URL" section as you will need it for the next step.

  • Step 8: Follow directions to launch the bot on a Heroku server here

Discord

  • Step 1: Go to the Discord server that you want to add the bot to.
  • Step 2: Go to "Server Settings".

  • Step 3: Click "Webhooks" in the side menu.
  • Step 4: Click "Create Webhook" and fill out the information.
  • Step 5: Copy the "Webhook Url" as you will need it in step 7.

  • Step 6: Click "Save".

  • Step 7: Follow directions to launch the bot on a Heroku server here

Deploy the bot

  • Step 1: Go to https://signup.heroku.com/login and create a Heroku account.

  • Step 2: Click this button to deploy the Bot: Deploy

  • Step 3: Choose an app name

  • Step 4:

For Groupme fill out the following (The BOT_TYPE needs to be groupme):

For Slack fill out the following (The BOT_TYPE needs to be slack):

For Discord fill out the following (The BOT_TYPE needs to be discord):

You can leave everything else as their default values.

  • Step 5: Click "Deploy app".
  • Step 6: After the deployment process is done, click "Manage app" and go to the "Resources" tab.
  • Step 7: Click the pencil icon next to worker and toggle it to the on position, and click "confirm".

And you are all done! The bot should now be deployed an you should get a welcome message.

Author

👤 Swapnik Katkoori

License

This project is licensed under the terms of the MIT license.