Fix bot failure on profile update
This commit is contained in:
parent
d96f1e9004
commit
af525b207f
@ -183,7 +183,6 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
|
|||||||
}
|
}
|
||||||
pkName := strings.Split(pokememeString, "+")[0]
|
pkName := strings.Split(pokememeString, "+")[0]
|
||||||
pkName = strings.Replace(pkName, " ⭐", "", 1)
|
pkName = strings.Replace(pkName, " ⭐", "", 1)
|
||||||
pkName = strings.TrimSuffix(pkName, " ")
|
|
||||||
if strings.Contains(pkName, "🔟") {
|
if strings.Contains(pkName, "🔟") {
|
||||||
pkName = strings.Split(pkName, "🔟 ")[1]
|
pkName = strings.Split(pkName, "🔟 ")[1]
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user