LandonPatmore / yahoo-fantasy-bot

Bot that alerts GroupMe, Discord, and Slack users about various things happening in their Yahoo Fantasy Sports league.
MIT License
86 stars 61 forks source link

Yahoo Game Key #57

Closed Incogneat01234 closed 4 years ago

Incogneat01234 commented 4 years ago

Does anyone know the latest game key for the 2020 fantasy football season. I cannot seem to find it.

Incogneat01234 commented 4 years ago

399

LandonPatmore commented 4 years ago

I wonder if there is a way I can grab the latest key automatically, thus that is one less thing the users have to configure...

Incogneat01234 commented 4 years ago

There appear to be a few apps here on GitHub which may be doing the same thing. Last year it was 390, so I simply just queried the API at 391, 392, etc until it returned that the game was 2020 football, full.

LandonPatmore commented 4 years ago

They are automatically configuring? Or they have the same issue as mine? Its pretty annoying that you even had to do that, I'm sorry about that.

Incogneat01234 commented 4 years ago

Ah, sorry I wasn't clear. They are auto configuring. Seems like it's a query that can be run through the yahoo API, but I didn't dig too deep into it.

LandonPatmore commented 4 years ago

Looks like I found the API to do it: https://developer.yahoo.com/fantasysports/guide/#sample-xml

Incogneat01234 commented 4 years ago

Perfect! Thanks for the bot, we just switched to discord and implemented it and my league thinks it's fantastic.

LandonPatmore commented 4 years ago

Awesome! I'm really glad, maybe tomorrow I'll have the fix out. Work has me swamped, so we will see.

LandonPatmore commented 4 years ago

@Incogneat01234 Added the auto config for game key, tell me if it makes it easier for you. Thanks for telling me about it!

LandonPatmore commented 4 years ago

@scottillogical I got an email about your issue, but looks like you deleted your comment. Was the issue resolved?

scottillogical commented 4 years ago

@LandonPatmore yep! i got an error asking for a gamekey, resolved it by adding YAHOO_GAME_KEY=MLB env var

LandonPatmore commented 4 years ago

Is it working for MLB? I am curious now @scottillogical

scottillogical commented 4 years ago

working so far for me

LandonPatmore commented 4 years ago

Awesome! If you have any issues, please create an issue so I can track it...nice to know that its working in other types of fantasy leagues as well!