This project was inspired by https://github.com/dtcarls/ff_bot.
All credit to u/SwapniKatkoori for creating the bot
A GroupMe/Slack/Discord Bot for Sleeper fantasy leagues. It sends messages on the schedule below.
- Thursday:
- 7pm ET Matchups for the week.
- Friday:
- 9am ET Scores (Only does half ppr scores for now)
- Sunday:
- 7pm ET Close games.
- Monday:
- 9am ET Scores (Only does half ppr scores for now)
- 8pm ET Close games
- 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.
- 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
- 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
- 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
-
Step 1: Go to https://signup.heroku.com/login and create a Heroku account.
-
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.
👤 Swapnik Katkoori
This project is licensed under the terms of the MIT license.