Closed oltodo closed 6 years ago
You mean we need to switch these values?
const EVENT_SECOND_YELLOW_CARD_RED = 3; // Maybe?
const EVENT_STRAIGHT_RED = 4; // Maybe?
No matters the value, we handle them in the same way: https://github.com/j0k3r/worldcup-slack-bot/blob/master/worldCupNotifier.php#L344-L349
I still don't know what is the EVENT_SECOND_YELLOW_CARD_RED
value but yes, you can switch the values for now.
Indeed, it not changes anything in your case. So it was just for information. 😉
And you could remove the // Maybe?
for the EVENT_STRAIGHT_RED
constant.
According the previous Colombia/Japan match, it seems the type number for the straight red card is 3 but not 4 like the following defines.
https://github.com/j0k3r/worldcup-slack-bot/blob/c23aa06dc65ab3a8d3873326253c9ccf0d1774eb/worldCupNotifier.php#L88
Refer to the match's events :
https://api.fifa.com/api/v1/timelines/17/254645/275073/300331550?language=fr-FR&count=1