hdkv
/
i2_bot
Archived
1
Fork 0

Bastion link on proper profile update

master
Vladimir Hodakov 2017-11-29 10:04:54 +04:00
parent 0bc1b76352
commit f52920334d
2 changed files with 6 additions and 2 deletions

View File

@ -305,6 +305,6 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
u.fillProfilePokememe(profileRaw.ID, meme, attack, rarity)
}
u.profileAddSuccessMessage(update)
u.profileAddSuccessMessage(update, league.ID)
return "ok"
}

View File

@ -47,12 +47,16 @@ func (u *Users) getUsersWithProfiles() ([]dbmapping.PlayerProfile, bool) {
return usersArray, true
}
func (u *Users) profileAddSuccessMessage(update *tgbotapi.Update) {
func (u *Users) profileAddSuccessMessage(update *tgbotapi.Update, leagueID int) {
message := "*Профиль успешно обновлен.*\n\n"
message += "Функциональность бота держится на актуальности профилей. Обновляйся почаще, и да пребудет с тобой Рандом!\n"
message += "Сохраненный профиль ты можешь просмотреть командой /me.\n\n"
message += "/best посмотреть лучших покемемов для поимки"
if leagueID == 1 {
message += "\nЗаходи в Бастион Инстинкта: https://t.me/joinchat/G2vME0mIX-QHjjxE\\_JBzoQ\n"
}
msg := tgbotapi.NewMessage(update.Message.Chat.ID, message)
msg.ParseMode = "Markdown"