This commit is contained in:
2026-07-21 03:55:57 +03:00
commit 15b428efec
39 changed files with 136724 additions and 0 deletions

32
handball.go Normal file
View File

@@ -0,0 +1,32 @@
package onexbet
import "strings"
var (
bannedHandballChamps = []string{
"Alternative Matches",
"Element League",
"Niko Cup",
"Avalanche Сup",
}
bannedHandballPrefixes = []string{
"PRO League",
}
)
func HandballChampFilter(champName string) (_ bool) {
for _, bannedChampName := range bannedHandballChamps {
if strings.Contains(champName, bannedChampName) {
return
}
}
for _, bannedPrefix := range bannedHandballPrefixes {
if strings.HasPrefix(champName, bannedPrefix) {
return
}
}
return true
}