From 3b8b027c30f5ad9daa9b27893bfe2819ac74304d Mon Sep 17 00:00:00 2001 From: Russia9 Date: Mon, 29 Aug 2022 16:32:46 +0300 Subject: [PATCH] cw2 --- app.go | 2 +- app/sender.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app.go b/app.go index d0504f2..0d06271 100644 --- a/app.go +++ b/app.go @@ -44,7 +44,7 @@ func main() { // Kafka consumer init consumer, err := kafka.NewConsumer(&kafka.ConfigMap{ "bootstrap.servers": utils.GetEnv("KAFKA_ADDRESS", "localhost"), - "group.id": "cw2", + "group.id": "cw2-duels", "auto.offset.reset": "latest", }) if err != nil { diff --git a/app/sender.go b/app/sender.go index 446eb45..4b94605 100644 --- a/app/sender.go +++ b/app/sender.go @@ -18,13 +18,13 @@ func (a *App) Sender(channel chan messages.DuelMessage) { message.Loser.Tag = "[" + message.Loser.Tag + "]" } - msgString := "Победитель: " + + msgString := "Winner: " + 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) { " ❤" + strconv.Itoa(message.Loser.Health) if message.IsChallenge { - msgString += "\n" + "Дружеская дуэль" + msgString += "\n" + "Friendly Duel" } if message.IsGuildDuel { - msgString += "\n" + "Гильдейская дуэль" + msgString += "\n" + "Guild Duel" } _, err := a.Bot.Send(a.Chat, msgString, telebot.ModeHTML)