mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
feat(lol): drop EMEA Masters and CBLOL from the schedule allowlist
This commit is contained in:
1 parent
26c9431331
commit
749cd516a3
2 files changed
+9
-15
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user