j0k3r / worldcup-slack-bot

WorldCupBot will notify a Slack channel/group for every match during a FIFA World Cup
MIT License
40 stars 29 forks source link

Women's World Cup? #15

Closed dbecker801 closed 5 years ago

dbecker801 commented 5 years ago

Has anyone taken a look at the FIFA API to see if this bot will work with the Women's World Cup next month?

j0k3r commented 5 years ago

I think we won’t be able to check until the first game

dbecker801 commented 5 years ago

Looking at the current score page (https://www.fifa.com/womensworldcup/matches/) I think these are the correct values for competition and season:

const ID_COMPETITION = 103; const ID_SEASON = 278513;

I suppose you could also try running it against the ongoing U-20 World Cup (https://www.fifa.com/u20worldcup/matches/):

const ID_COMPETITION = 104; const ID_SEASON = 281971;

j0k3r commented 5 years ago

Great @dbecker801! And it looks like @Joef just made the change on its fork. Is it working as expected?

kyzn commented 5 years ago

Can confirm those numbers are working as expected :+1:

j0k3r commented 5 years ago

Great! I've updated the README with information on how to find value for the World Cup user want to use https://github.com/j0k3r/worldcup-slack-bot/commit/363a50ee73406809db784ba001036aa11abf0d8c