yahoo-fantasy-bot

所属分类:自然语言处理
开发工具:kotlin
文件大小:413KB
下载次数:0
上传日期:2022-09-06 04:40:51
上 传 者sh-1993
说明:  提醒GroupMe、Discord和Slack用户有关Yahoo Fantasy Sports league中发生的各种事情的Bot。
(Bot that alerts GroupMe, Discord, and Slack users about various things happening in their Yahoo Fantasy Sports league.)

文件列表:
.editorconfig (26024, 2022-09-06)
LICENSE (1071, 2022-09-06)
Procfile (71, 2022-09-06)
app.json (1348, 2022-09-06)
backend (0, 2022-09-06)
backend\build.gradle.kts (1899, 2022-09-06)
backend\gradle.properties (39, 2022-09-06)
backend\gradle (0, 2022-09-06)
backend\gradle\wrapper (0, 2022-09-06)
backend\gradle\wrapper\gradle-wrapper.jar (56172, 2022-09-06)
backend\gradle\wrapper\gradle-wrapper.properties (202, 2022-09-06)
backend\gradlew (5296, 2022-09-06)
backend\gradlew.bat (2260, 2022-09-06)
backend\resources (0, 2022-09-06)
backend\resources\VERSION (5, 2022-09-06)
backend\resources\application.conf (185, 2022-09-06)
backend\resources\logback.xml (427, 2022-09-06)
backend\src (0, 2022-09-06)
backend\src\com (0, 2022-09-06)
backend\src\com\landonpatmore (0, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot (0, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend (0, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\Application.kt (2668, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\models (0, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\models\Authentication.kt (1255, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\models\ReleaseInformation.kt (1700, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\routes (0, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\routes\GetRoutes.kt (5202, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\routes\PutRoutes.kt (2870, 2022-09-06)
backend\src\com\landonpatmore\yahoofantasybot\backend\routes\StaticRoutes.kt (1564, 2022-09-06)
backend\test (0, 2022-09-06)
backend\test\ApplicationTest.kt (518, 2022-09-06)
bot (0, 2022-09-06)
bot\build.gradle (477, 2022-09-06)
bot\src (0, 2022-09-06)
bot\src\main (0, 2022-09-06)
bot\src\main\kotlin (0, 2022-09-06)
... ...

# **THIS REPO HAS BEEN ARCHIVED AND IS NOT BEING ACTIVELY MAINTAINED ANYMORE. IT WAS A FUN 4 YEARS, BUT I DON'T USE YAHOO FANTASY ANYMORE AND SADLY DON'T HAVE THE TIME TO SUPPORT IT. THANKS EVERYONE FOR USING IT!** [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) **Note: Frontend does not work in safari (v3.0.0)** ### Feel free to contribute! #### Current Roadmap - [x] Kotlin (because why not :?) - [x] Reactive X - [ ] Docker Support - [x] More in depth messages - [ ] Respond to chat commands from various messaging services - [ ] Clean up code **Auto-deploys do not happen automatically. You will need to come back and click the "Deploy" button again to get the latest bot. It will reset everything. Just follow all the steps again and you will be good!** # Yahoo Fantasy Bot Bot that alerts GroupMe, Slack, and Discord users about various things happening in their Yahoo Fantasy Football League. ## What it does: >**League Transaction Alerts** >* ADD >* DROP >* ADD/DROP >* TRADE >* COMMISH CHANGES ## What it can do: - You can customize all alerts and send them whenever and however many times you want! ![](https://i.imgur.com/1Ol63Al.png) ## Follow these steps EXACTLY! 1. Click the `Deploy to Heroku` button at the top. It will auto-deploy the application to Heroku. 2. Name the application whatever you would like. 3. Follow the below section. --- ### (REQUIRED) Setting up Yahoo API You will need a Yahoo Access Token, Client ID, and Client Secret for this bot to work. 1. Go to https://developer.yahoo.com/apps/ 2. Click "Create an App" button ![](https://imgur.com/VDgZ1Ze.png) 3. Fill out required information. * Name the application whatever you would like * Click "Installed Application" * The Redirect URI will be https://\.herokuapp.com/auth * Click "Fantasy Sports" and then "Read" * Click "Create App" ![](https://imgur.com/VqctUfM.png) 4. You will see your: Yahoo Client ID and Client Secret. Save these for later. ![](https://imgur.com/NbUwOmD.png) 5. To get your league ID: (2 Ways) **On the website** * Go to Yahoo Fantasy Football and click your league * Go to settings page * At the top, you will see "League ID", save for later **In the app** * Open the app * Click "League" tab * Click "Settings" at the top * At the top, you will see "League ID#", save for later --- 5. **The following sections are all optional, but at least one of them is needed. All of them can be used as well!** (The following sections were taken from [dtcarls/ff_bot](https://github.com/dtcarls/ff_bot) as the steps are the exact same. They are tweaked a little bit.) --- ### (Optional) GroupMe Setup
Click to expand

Go to www.groupme.com and sign up or login If you don't have one for your league already, create a new "Group Chat" ![](https://i.imgur.com/32ioDoZ.png) Next we will setup the bot for GroupMe Go to https://dev.groupme.com/session/new and login Click "Create Bot" ![](https://i.imgur.com/TI1bpwE.png) Create your bot. GroupMe does a good job explaining what each thing is. ![](https://i.imgur.com/DQUcuuI.png) After you have created your bot you will see something similar to this. Click "Edit" ![](https://i.imgur.com/Z9vwKKt.png) This page is important as you will need the "Bot ID" on this page.You can also send a test message with the text box to be sure it is connected to your chat room. Side note: If you use the bot id depicted in the page you will spam an empty chat room so not worth the effort ![](https://i.imgur.com/k65EZFJ.png)

--- ### (Optional) Slack setup
Click to expand

Go to https://slack.com/signin and sign in to the workspace the bot will be in If you don't have one for your league already, create a new League Channel Next we will setup the bot for Slack Go to https://api.slack.com/apps/new Name the app, and choose the intended workspace from the dropdown. Select the Incoming Webhooks section on the side. ![](https://i.imgur.com/ziRQCVP.png) Change the toggle from Off to On. Select Add New Webhook to Workspace ![](https://i.imgur.com/tJRRrfz.png) In the Post to dropdown, select the channel you want to send messages to, then select Authorize. This page is important as you will need the "Webhook URL" on this page. ![](https://i.imgur.com/mmzhDS0.png)

--- ### (Optional) Discord setup
Click to expand

Log into or create a discord account Go to or create a discord server to receive messages in Open the server settings ![](https://i.imgur.com/bDk2ttJ.png) Go to Webhooks ![](https://i.imgur.com/mfFHGbT.png) Create a webhook, give it a name and pick which channel to receive messages in ![](https://i.imgur.com/NAJLv6D.png) Save the "Webhook URL" on this page ![](https://i.imgur.com/U4MKZSY.png)

--- 6. Follow the below section. ### Heroku Setup 1. Go to your [dashboard](https://dashboard.heroku.com/apps). Now you will need to setup your environment variables so that it works for your league. Click Settings at your dashboard. Then click "Reveal Config Vars" button and you will see something like this. ![](https://imgur.com/8k1tZPs.png) 2. Fill out all the variables (You can have any combination of messaging services (0..n).) 3. Click "Deploy App". This will automatically configure the dynos and run all required scripts to create the bot. (this will take a bit) 4. Click "Overview" 5. Click "Configure Dynos" and turn on the "web" and "bot" dyno 6. Click "Open App" at the top right 7. Follow the setup 8. Once you are authorized you can add all types of alerts for your league! 9. IMPORTANT: Once done adding alerts, Click "Configure Dynos" and turn OFF the "web" dyno (failing to do this will put your bot to sleep because of heroku policy, thus your bot will not function.) ### You are all set! Enjoy the bot! ## License ``` MIT License Copyright (c) 2018 Landon Patmore Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```

近期下载者

相关文件


收藏者