Archived
1

Latest game update reflections

This commit is contained in:
2017-11-26 19:38:25 +04:00
parent 7803242588
commit b57cacb4d4
5 changed files with 79 additions and 1 deletions

View File

@@ -150,7 +150,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
if strings.HasPrefix(currentString, "🔫") {
// We need NEXT string!
weaponType := strings.Replace(currentString, "🔫 ", "", 1)
wnRx := regexp.MustCompile("(.+)(ита)")
wnRx := regexp.MustCompile("(.+)(ита|ёры)")
weapon = wnRx.FindString(weaponType)
}