Archived
1

Fix bot failure on profile update

This commit is contained in:
Vladimir Hodakov 2018-04-01 17:51:38 +04:00
parent d96f1e9004
commit af525b207f

View File

@ -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 {