hdkv
/
i2_bot
Archived
1
Fork 0

Valentine label fix

master
Vladimir Hodakov 2018-02-13 23:10:26 +04:00
parent 1370ab2b91
commit 5da61b460b
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@
package users
import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping"
"github.com/go-telegram-bot-api/telegram-bot-api"
"regexp"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping"
"strconv"
"strings"
"time"
@ -299,7 +299,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
rarity = "new year"
meme = strings.Replace(meme, "❄", "", 1)
}
if strings.HasPrefix(meme, "❤") {
if strings.HasPrefix(meme, "❤") {
rarity = "valentine"
meme = strings.Replace(meme, "❤️", "", 1)
}