Valentine label fix
This commit is contained in:
parent
1370ab2b91
commit
5da61b460b
@ -4,9 +4,9 @@
|
|||||||
package users
|
package users
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping"
|
|
||||||
"github.com/go-telegram-bot-api/telegram-bot-api"
|
"github.com/go-telegram-bot-api/telegram-bot-api"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@ -299,7 +299,7 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
|
|||||||
rarity = "new year"
|
rarity = "new year"
|
||||||
meme = strings.Replace(meme, "❄", "", 1)
|
meme = strings.Replace(meme, "❄", "", 1)
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(meme, "❤️") {
|
if strings.HasPrefix(meme, "❤") {
|
||||||
rarity = "valentine"
|
rarity = "valentine"
|
||||||
meme = strings.Replace(meme, "❤️", "", 1)
|
meme = strings.Replace(meme, "❤️", "", 1)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user