feat(lol): drop EMEA Masters and CBLOL from the schedule allowlist

This commit is contained in:
tiennm99 committed 2026-09-21 08:47:32 +07:00
1 parent 26c9431331
commit 749cd516a3
2 files changed
+9 -15

No files matched your search

-2
View File
@@ -77,8 +77,6 @@ var leagueSlugMap = map[string]string{
"league-of-legends-first-stand": "first_stand",
"league-of-legends-esports-world-cup": "ewc_lol",
"league-of-legends-lcp": "lcp",
"league-of-legends-cblol-brazil": "cblol-brazil",
"league-of-legends-emea-masters": "emea_masters",
}
// canonicalLeagueSlug maps a PandaScore slug to the module's canonical slug,
+9 -13
View File
@@ -20,25 +20,21 @@ var leagueOrder = []string{
"lec",
"lcs",
"lcp",
"cblol-brazil",
"emea_masters",
}
// majorLeagueSlugs filters the upstream schedule down to the headline
// tournaments most viewers care about. Without this filter the API
// returns 135+ events/week and replies blow past Telegram's 4096-char limit.
var majorLeagueSlugs = map[string]bool{
"lck": true,
"lpl": true,
"lec": true,
"lcs": true,
"worlds": true,
"msi": true,
"first_stand": true,
"ewc_lol": true,
"lcp": true,
"cblol-brazil": true,
"emea_masters": true,
"lck": true,
"lpl": true,
"lec": true,
"lcs": true,
"worlds": true,
"msi": true,
"first_stand": true,
"ewc_lol": true,
"lcp": true,
}
// FilterMajor keeps only events whose league slug is in the major-league