Browse Source

cw3

master
Andrey Kovalev 2 years ago
parent
commit
99ff452316
Signed by: Russia9
GPG Key ID: EC3AA65373CA51DC
  1. 8
      app/sender.go

8
app/sender.go

@ -18,13 +18,13 @@ func (a *App) Sender(channel chan messages.DuelMessage) { @@ -18,13 +18,13 @@ func (a *App) Sender(channel chan messages.DuelMessage) {
message.Loser.Tag = "[" + message.Loser.Tag + "]"
}
msgString := "Winner: " +
msgString := "Победитель: " +
message.Winner.Castle +
message.Winner.Tag +
message.Winner.Name +
" 🏅" + strconv.Itoa(message.Winner.Level) +
" ❤" + strconv.Itoa(message.Winner.Health) + " \n" +
"Loser: " +
"Проигравший: " +
message.Loser.Castle +
message.Loser.Tag +
message.Loser.Name +
@ -32,11 +32,11 @@ func (a *App) Sender(channel chan messages.DuelMessage) { @@ -32,11 +32,11 @@ func (a *App) Sender(channel chan messages.DuelMessage) {
" ❤" + strconv.Itoa(message.Loser.Health)
if message.IsChallenge {
msgString += "\n" + "<b>Friendly Duel</b>"
msgString += "\n" + "<b>Дружеская дуэль</b>"
}
if message.IsGuildDuel {
msgString += "\n" + "<b>Guild Duel</b>"
msgString += "\n" + "<b>Гильдейская дуэль</b>"
}
_, err := a.Bot.Send(a.Chat, msgString, telebot.ModeHTML)

Loading…
Cancel
Save