diff --git a/cron/handler.go b/cron/handler.go index 73fc81c..e15c0a9 100644 --- a/cron/handler.go +++ b/cron/handler.go @@ -52,7 +52,7 @@ func (h *handler) loadEnnoblements(servers []string) map[string]ennoblements { lastEnnoblementAt, ok := h.lastEnnoblementAt[w] if !ok { - lastEnnoblementAt = time.Now().Add(-1 * time.Minute) + lastEnnoblementAt = time.Now().Add(-60 * time.Minute) } m[w] = filterEnnoblements(es, lastEnnoblementAt) diff --git a/discord/admin_commands.go b/discord/admin_commands.go index bc399c7..30b0ffc 100644 --- a/discord/admin_commands.go +++ b/discord/admin_commands.go @@ -20,17 +20,17 @@ const ( ) const ( - AddGroupCommand Command = "addgroup" - DeleteGroupCommand Command = "deletegroup" - GroupsCommand Command = "groups" - ShowEnnobledBarbariansCommand Command = "showennobledbarbs" - ObserveCommand Command = "observe" - ObservationsCommand Command = "observations" - UnObserveCommand Command = "unobserve" - LostVillagesCommand Command = "lostvillages" - UnObserveLostVillagesCommand Command = "unobservelostvillages" - ConqueredVillagesCommand Command = "conqueredvillages" - UnObserveConqueredVillagesCommand Command = "unobserveconqueredvillages" + AddGroupCommand Command = "addgroup" + DeleteGroupCommand Command = "deletegroup" + GroupsCommand Command = "groups" + ShowEnnobledBarbariansCommand Command = "showennobledbarbs" + ObserveCommand Command = "observe" + ObservationsCommand Command = "observations" + DeleteObservationCommand Command = "deleteobservation" + LostVillagesCommand Command = "lostvillages" + DisableLostVillagesCommand Command = "disablelostvillages" + ConqueredVillagesCommand Command = "conqueredvillages" + DisableConqueredVillagesCommand Command = "disableconqueredvillages" ) func (s *Session) handleAddGroupCommand(ctx commandCtx, m *discordgo.MessageCreate) { @@ -236,7 +236,7 @@ func (s *Session) handleConqueredVillagesCommand(ctx commandCtx, m *discordgo.Me })) } -func (s *Session) handleUnObserveConqueredVillagesCommand(ctx commandCtx, m *discordgo.MessageCreate, args ...string) { +func (s *Session) handleDisableConqueredVillagesCommand(ctx commandCtx, m *discordgo.MessageCreate, args ...string) { if has, err := s.memberHasPermission(m.GuildID, m.Author.ID, discordgo.PermissionAdministrator); err != nil || !has { return } @@ -248,11 +248,11 @@ func (s *Session) handleUnObserveConqueredVillagesCommand(ctx commandCtx, m *dis } else if argsLength < 1 { s.SendMessage(m.ChannelID, m.Author.Mention()+" "+ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "help.unobserveconqueredvillages", - DefaultMessage: message.FallbackMsg("help.unobserveconqueredvillages", + MessageID: "help.disableconqueredvillages", + DefaultMessage: message.FallbackMsg("help.disableconqueredvillages", "**{{.Command}}** [group id from {{.GroupsCommand}}] - disable notifications about conquered villages."), TemplateData: map[string]interface{}{ - "Command": UnObserveConqueredVillagesCommand.WithPrefix(s.cfg.CommandPrefix), + "Command": DisableConqueredVillagesCommand.WithPrefix(s.cfg.CommandPrefix), "GroupsCommand": GroupsCommand.WithPrefix(s.cfg.CommandPrefix), }, })) @@ -263,8 +263,8 @@ func (s *Session) handleUnObserveConqueredVillagesCommand(ctx commandCtx, m *dis if err != nil { s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserveConqueredVillages.invalidID", - DefaultMessage: message.FallbackMsg("unObserveConqueredVillages.invalidID", + MessageID: "disableConqueredVillages.invalidID", + DefaultMessage: message.FallbackMsg("disableConqueredVillages.invalidID", "{{.Mention}} The group ID must be a number greater than 0."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -280,8 +280,8 @@ func (s *Session) handleUnObserveConqueredVillagesCommand(ctx commandCtx, m *dis if err != nil || len(groups) == 0 { s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserveConqueredVillages.groupNotFound", - DefaultMessage: message.FallbackMsg("unObserveConqueredVillages.groupNotFound", + MessageID: "disableConqueredVillages.groupNotFound", + DefaultMessage: message.FallbackMsg("disableConqueredVillages.groupNotFound", "{{.Mention}} Group not found."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -296,8 +296,8 @@ func (s *Session) handleUnObserveConqueredVillagesCommand(ctx commandCtx, m *dis } s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserveConqueredVillages.success", - DefaultMessage: message.FallbackMsg("unObserveConqueredVillages.success", + MessageID: "disableConqueredVillages.success", + DefaultMessage: message.FallbackMsg("disableConqueredVillages.success", "{{.Mention}} Notifications about conquered villages will no longer show up."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -374,7 +374,7 @@ func (s *Session) handleLostVillagesCommand(ctx commandCtx, m *discordgo.Message })) } -func (s *Session) handleUnObserveLostVillagesCommand(ctx commandCtx, m *discordgo.MessageCreate, args ...string) { +func (s *Session) handleDisableLostVillagesCommand(ctx commandCtx, m *discordgo.MessageCreate, args ...string) { if has, err := s.memberHasPermission(m.GuildID, m.Author.ID, discordgo.PermissionAdministrator); err != nil || !has { return } @@ -386,11 +386,11 @@ func (s *Session) handleUnObserveLostVillagesCommand(ctx commandCtx, m *discordg } else if argsLength < 1 { s.SendMessage(m.ChannelID, m.Author.Mention()+" "+ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "help.unobservelostvillages", - DefaultMessage: message.FallbackMsg("help.unobservelostvillages", + MessageID: "help.disablelostvillages", + DefaultMessage: message.FallbackMsg("help.disablelostvillages", "**{{.Command}}** [group id from {{.GroupsCommand}}] - disable notifications about lost villages."), TemplateData: map[string]interface{}{ - "Command": UnObserveLostVillagesCommand.WithPrefix(s.cfg.CommandPrefix), + "Command": DisableLostVillagesCommand.WithPrefix(s.cfg.CommandPrefix), "GroupsCommand": GroupsCommand.WithPrefix(s.cfg.CommandPrefix), }, })) @@ -401,8 +401,8 @@ func (s *Session) handleUnObserveLostVillagesCommand(ctx commandCtx, m *discordg if err != nil { s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserveLostVillages.invalidID", - DefaultMessage: message.FallbackMsg("unObserveLostVillages.invalidID", + MessageID: "disableLostVillages.invalidID", + DefaultMessage: message.FallbackMsg("disableLostVillages.invalidID", "{{.Mention}} The group ID must be a number greater than 0."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -418,8 +418,8 @@ func (s *Session) handleUnObserveLostVillagesCommand(ctx commandCtx, m *discordg if err != nil || len(groups) == 0 { s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserveLostVillages.groupNotFound", - DefaultMessage: message.FallbackMsg("unObserveLostVillages.groupNotFound", + MessageID: "disableLostVillages.groupNotFound", + DefaultMessage: message.FallbackMsg("disableLostVillages.groupNotFound", "{{.Mention}} Group not found."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -435,8 +435,8 @@ func (s *Session) handleUnObserveLostVillagesCommand(ctx commandCtx, m *discordg s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserveLostVillages.success", - DefaultMessage: message.FallbackMsg("unObserveLostVillages.success", + MessageID: "disableLostVillages.success", + DefaultMessage: message.FallbackMsg("disableLostVillages.success", "{{.Mention}} Notifications about lost villages will no longer show up."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -587,7 +587,7 @@ func (s *Session) handleObserveCommand(ctx commandCtx, m *discordgo.MessageCreat })) } -func (s *Session) handleUnObserveCommand(ctx commandCtx, m *discordgo.MessageCreate, args ...string) { +func (s *Session) handleDeleteObservationCommand(ctx commandCtx, m *discordgo.MessageCreate, args ...string) { if has, err := s.memberHasPermission(m.GuildID, m.Author.ID, discordgo.PermissionAdministrator); err != nil || !has { return } @@ -599,11 +599,11 @@ func (s *Session) handleUnObserveCommand(ctx commandCtx, m *discordgo.MessageCre } else if argsLength < 2 { s.SendMessage(m.ChannelID, m.Author.Mention()+" "+ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "help.unobserve", - DefaultMessage: message.FallbackMsg("help.unobserve", + MessageID: "help.deleteobservation", + DefaultMessage: message.FallbackMsg("help.deleteobservation", "**{{.Command}}** [group id from {{.GroupsCommand}}] [id from {{.ObservationsCommand}}] - removes a tribe from the observation group."), TemplateData: map[string]interface{}{ - "Command": UnObserveCommand.WithPrefix(s.cfg.CommandPrefix), + "Command": DeleteObservationCommand.WithPrefix(s.cfg.CommandPrefix), "ObservationsCommand": ObservationsCommand.WithPrefix(s.cfg.CommandPrefix), "GroupsCommand": GroupsCommand.WithPrefix(s.cfg.CommandPrefix), }, @@ -615,8 +615,8 @@ func (s *Session) handleUnObserveCommand(ctx commandCtx, m *discordgo.MessageCre if err != nil { s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserve.invalidGroupID", - DefaultMessage: message.FallbackMsg("unObserve.invalidGroupID", + MessageID: "deleteObservation.invalidGroupID", + DefaultMessage: message.FallbackMsg("deleteObservation.invalidGroupID", "{{.Mention}} The group ID must be a number greater than 0."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -628,8 +628,8 @@ func (s *Session) handleUnObserveCommand(ctx commandCtx, m *discordgo.MessageCre if err != nil { s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserve.invalidTribeID", - DefaultMessage: message.FallbackMsg("unObserve.invalidTribeID", + MessageID: "deleteObservation.invalidTribeID", + DefaultMessage: message.FallbackMsg("deleteObservation.invalidTribeID", "{{.Mention}} The tribe ID must be a number greater than 0."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), @@ -642,8 +642,8 @@ func (s *Session) handleUnObserveCommand(ctx commandCtx, m *discordgo.MessageCre if err != nil || group.ServerID != m.GuildID { s.SendMessage(m.ChannelID, ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "unObserve.groupNotFound", - DefaultMessage: message.FallbackMsg("unObserve.groupNotFound", "{{.Mention}} Group not found."), + MessageID: "deleteObservation.groupNotFound", + DefaultMessage: message.FallbackMsg("deleteObservation.groupNotFound", "{{.Mention}} Group not found."), TemplateData: map[string]interface{}{ "Mention": m.Author.Mention(), }, diff --git a/discord/discord.go b/discord/discord.go index 2c86c82..06f5269 100644 --- a/discord/discord.go +++ b/discord/discord.go @@ -119,18 +119,18 @@ func (s *Session) handleNewMessage(_ *discordgo.Session, m *discordgo.MessageCre s.handleShowEnnobledBarbariansCommand(ctx, m, args...) case ObserveCommand.WithPrefix(s.cfg.CommandPrefix): s.handleObserveCommand(ctx, m, args...) - case UnObserveCommand.WithPrefix(s.cfg.CommandPrefix): - s.handleUnObserveCommand(ctx, m, args...) + case DeleteObservationCommand.WithPrefix(s.cfg.CommandPrefix): + s.handleDeleteObservationCommand(ctx, m, args...) case ObservationsCommand.WithPrefix(s.cfg.CommandPrefix): s.handleObservationsCommand(ctx, m, args...) case ConqueredVillagesCommand.WithPrefix(s.cfg.CommandPrefix): s.handleConqueredVillagesCommand(ctx, m, args...) - case UnObserveConqueredVillagesCommand.WithPrefix(s.cfg.CommandPrefix): - s.handleUnObserveConqueredVillagesCommand(ctx, m, args...) + case DisableConqueredVillagesCommand.WithPrefix(s.cfg.CommandPrefix): + s.handleDisableConqueredVillagesCommand(ctx, m, args...) case LostVillagesCommand.WithPrefix(s.cfg.CommandPrefix): s.handleLostVillagesCommand(ctx, m, args...) - case UnObserveLostVillagesCommand.WithPrefix(s.cfg.CommandPrefix): - s.handleUnObserveLostVillagesCommand(ctx, m, args...) + case DisableLostVillagesCommand.WithPrefix(s.cfg.CommandPrefix): + s.handleDisableLostVillagesCommand(ctx, m, args...) } } diff --git a/discord/public_commands.go b/discord/public_commands.go index 3fed911..4ee4ec4 100644 --- a/discord/public_commands.go +++ b/discord/public_commands.go @@ -150,11 +150,11 @@ func (s *Session) handleHelpCommand(ctx commandCtx, m *discordgo.MessageCreate) }, }), ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "help.unobserve", - DefaultMessage: message.FallbackMsg("help.unobserve", + MessageID: "help.deleteobservation", + DefaultMessage: message.FallbackMsg("help.deleteobservation", "**{{.Command}}** [group id from {{.GroupsCommand}}] [id from {{.ObservationsCommand}}] - removes a tribe from the observation group."), TemplateData: map[string]interface{}{ - "Command": UnObserveCommand.WithPrefix(s.cfg.CommandPrefix), + "Command": DeleteObservationCommand.WithPrefix(s.cfg.CommandPrefix), "ObservationsCommand": ObservationsCommand.WithPrefix(s.cfg.CommandPrefix), "GroupsCommand": GroupsCommand.WithPrefix(s.cfg.CommandPrefix), }, @@ -169,11 +169,11 @@ func (s *Session) handleHelpCommand(ctx commandCtx, m *discordgo.MessageCreate) }, }), ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "help.unobserveconqueredvillages", - DefaultMessage: message.FallbackMsg("help.unobserveconqueredvillages", + MessageID: "help.disableconqueredvillages", + DefaultMessage: message.FallbackMsg("help.disableconqueredvillages", "**{{.Command}}** [group id from {{.GroupsCommand}}] - disable notifications about conquered villages."), TemplateData: map[string]interface{}{ - "Command": UnObserveConqueredVillagesCommand.WithPrefix(s.cfg.CommandPrefix), + "Command": DisableConqueredVillagesCommand.WithPrefix(s.cfg.CommandPrefix), "GroupsCommand": GroupsCommand.WithPrefix(s.cfg.CommandPrefix), }, }), @@ -193,11 +193,11 @@ func (s *Session) handleHelpCommand(ctx commandCtx, m *discordgo.MessageCreate) }, }), ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "help.unobservelostvillages", - DefaultMessage: message.FallbackMsg("help.unobservelostvillages", + MessageID: "help.disablelostvillages", + DefaultMessage: message.FallbackMsg("help.disablelostvillages", "*{{.Command}}** [group id from {{.GroupsCommand}}] changes the channel on which notifications about lost village will show. IMPORTANT! Call this command on the channel you want to display these notifications."), TemplateData: map[string]interface{}{ - "Command": UnObserveLostVillagesCommand.WithPrefix(s.cfg.CommandPrefix), + "Command": DisableLostVillagesCommand.WithPrefix(s.cfg.CommandPrefix), "GroupsCommand": GroupsCommand.WithPrefix(s.cfg.CommandPrefix), }, }), @@ -213,14 +213,11 @@ func (s *Session) handleHelpCommand(ctx commandCtx, m *discordgo.MessageCreate) MessageID: "help.title", DefaultMessage: message.FallbackMsg("help.title", "Help"), })). + SetURL("https://dcbot.tribalwarshelp.com/"). SetDescription(ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ MessageID: "help.description", DefaultMessage: message.FallbackMsg("help.description", "Commands offered by bot"), })). - SetFooter(ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ - MessageID: "help.footer", - DefaultMessage: message.FallbackMsg("help.footer", "Check bot website -> https://dcbot.tribalwarshelp.com/."), - })). AddField(ctx.localizer.MustLocalize(&i18n.LocalizeConfig{ MessageID: "help.forAllUsers", DefaultMessage: message.FallbackMsg("help.forAllUsers", "For all guild members."), diff --git a/message/translations/active.en.json b/message/translations/active.en.json index c4174c9..a9969c2 100644 --- a/message/translations/active.en.json +++ b/message/translations/active.en.json @@ -1,7 +1,7 @@ { "help.title": "Help", "help.description": "Commands offered by the bot", - "help.footer": "Check bot website -> https://dcbot.tribalwarshelp.com/", + "help.footer": "", "help.forAllUsers": "For all users", "help.forAdmins": "For admins", "help.tribe.topatt": "**{{.Command}}** [server] [page] [id1] [id2] [id3] [n id] - generates a player list from selected tribes ordered by ODA.", @@ -16,11 +16,11 @@ "help.showennobledbarbs": "**{{.Command}}** [group id from {{.GroupsCommand}}] - enables/disables notifications about ennobling barbarian villages.", "help.observe": "**{{.Command}}** [group id from {{.GroupsCommand}}] [server] [tribe id] - command adds a tribe to the observation group.", "help.observations": "**{{.Command}}** [group id from {{.GroupsCommand}}] - shows a list of observed tribes by this group.", - "help.unobserve": "**{{.Command}}** [group id from {{.GroupsCommand}}] [id from {{.ObservationsCommand}}] - removes a tribe from the observation group.", + "help.deleteobservation": "**{{.Command}}** [group id from {{.GroupsCommand}}] [id from {{.ObservationsCommand}}] - removes a tribe from the observation group.", "help.conqueredvillages": "**{{.Command}}** [group id from {{.GroupsCommand}}] - changes the channel on which notifications about conquered village will show. **IMPORTANT!** Call this command on the channel you want to display these notifications.", - "help.unobserveconqueredvillages": "**{{.Command}}** [group id from {{.GroupsCommand}}] - disable notifications about conquered villages.", - "help.lostvillages": "**{{.Command}}** [group id from {{.GroupsCommand}}] changes the channel on which notifications about lost village will show. **IMPORTANT!** Call this command on the channel you want to display these notifications.", - "help.unobservelostvillages": "**{{.Command}}** [group id from {{.GroupsCommand}}] - disable notifications about lost villages.", + "help.disableconqueredvillages": "**{{.Command}}** [group id from {{.GroupsCommand}}] - disable notifications about conquered villages.", + "help.lostvillages": "**{{.Command}}** [group id from {{.GroupsCommand}}] - changes the channel on which notifications about lost village will show. **IMPORTANT!** Call this command on the channel you want to display these notifications.", + "help.disablelostvillages": "**{{.Command}}** [group id from {{.GroupsCommand}}] - disable notifications about lost villages.", "tribe.invalidPage": "{{.Mention}} The page must be a number greater than 0.", "tribe.noTribeID": "{{.Mention}} You haven't entered the tribe ID.", @@ -46,17 +46,17 @@ "conqueredVillages.groupNotFound": "{{.Mention}} Group not found.", "conqueredVillages.success": "{{.Mention}} Channel changed successfully.", - "unObserveConqueredVillages.invalidID": "{{.Mention}} The group ID must be a number greater than 0.", - "unObserveConqueredVillages.groupNotFound": "{{.Mention}} Group not found.", - "unObserveConqueredVillages.success": "{{.Mention}} Notifications about conquered villages will no longer show up.", + "disableConqueredVillages.invalidID": "{{.Mention}} The group ID must be a number greater than 0.", + "disableConqueredVillages.groupNotFound": "{{.Mention}} Group not found.", + "disableConqueredVillages.success": "{{.Mention}} Notifications about conquered villages will no longer show up.", "lostVillages.invalidID": "{{.Mention}} The group ID must be a number greater than 0.", "lostVillages.groupNotFound": "{{.Mention}} Group not found.", "lostVillages.success": "{{.Mention}} Channel changed successfully.", - "unObserveLostVillages.invalidID": "{{.Mention}} The group ID must be a number greater than 0.", - "unObserveLostVillages.groupNotFound": "{{.Mention}} Group not found.", - "unObserveLostVillages.success": "{{.Mention}} Notifications about lost villages will no longer show up.", + "disableLostVillages.invalidID": "{{.Mention}} The group ID must be a number greater than 0.", + "disableLostVillages.groupNotFound": "{{.Mention}} Group not found.", + "disableLostVillages.success": "{{.Mention}} Notifications about lost villages will no longer show up.", "observe.invalidGroupID": "{{.Mention}} The group ID must be a number greater than 0.", "observe.invalidTribeID": "{{.Mention}} The tribe ID must be a number greater than 0.", @@ -67,10 +67,10 @@ "observe.observationLimitHasBeenReached": "{{.Mention}} The observation limit for this group has been reached ({{.Total}}/{{.Limit}}).", "observe.success": "{{.Mention}} Added.", - "unObserve.invalidGroupID": "{{.Mention}} The group ID must be a number greater than 0.", - "unObserve.invalidObservationID": "{{.Mention}} The observation ID must be a number greater than 0.", - "unObserve.groupNotFound": "{{.Mention}} Group not found.", - "unObserve.success": "{{.Mention}} Deleted.", + "deleteObservation.invalidGroupID": "{{.Mention}} The group ID must be a number greater than 0.", + "deleteObservation.invalidObservationID": "{{.Mention}} The observation ID must be a number greater than 0.", + "deleteObservation.groupNotFound": "{{.Mention}} Group not found.", + "deleteObservation.success": "{{.Mention}} Deleted.", "observations.invalidGroupID": "{{.Mention}} The group ID must be a number greater than 0.", "observations.groupNotFound": "{{.Mention}} Group not found.", @@ -83,7 +83,7 @@ "cron.lostVillages.title": "Lost villages", "cron.conqueredVillages.title": "Conquered villages", - "cron.checkEnnoblements.msgLine": "{{.NewOwner}} ({{.NewOwnerTribe}}) has conquered the village {{.Village}} (Old owner: {{.OldOwner}} ({{.OldOwnerTribe}}))", + "cron.checkEnnoblements.msgLine": "{{.NewOwner}} [{{.NewOwnerTribe}}] has conquered the village {{.Village}} (Old owner: {{.OldOwner}} [{{.OldOwnerTribe}}])", "api.defaultError": "{{.Mention}} There was an error fetching data from the API, please try again later.", diff --git a/message/translations/active.pl.json b/message/translations/active.pl.json new file mode 100644 index 0000000..7371ddb --- /dev/null +++ b/message/translations/active.pl.json @@ -0,0 +1,93 @@ +{ + "help.title": "Pomoc", + "help.description": "Komendy oferowane przez bota", + "help.footer": "", + "help.forAllUsers": "Dla wszystkich", + "help.forAdmins": "Dla adminów", + "help.tribe.topatt": "**{{.Command}}** [serwer] [strona] [id1] [id2] [id3] [n id] - generuje listę graczy z wybranych plemion i sortuje po pokonanych w ataku.", + "help.tribe.topdef": "**{{.Command}}** [serwer] [strona] [id1] [id2] [id3] [n id] - generuje listę graczy z wybranych plemion i sortuje po pokonanych w obronie.", + "help.tribe.topsupp": "**{{.Command}}** [serwer] [strona] [id1] [id2] [id3] [n id] - generuje listę graczy z wybranych plemion i sortuje po pokonanych jako wspierający.", + "help.tribe.toptotal": "**{{.Command}}** [serwer] [strona] [id1] [id2] [id3] [n id] - generuje listę graczy z wybranych plemion i sortuje po pokonanych ogólnie.", + "help.tribe.toppoints": "**{{.Command}}** [serwer] [strona] [id1] [id2] [id3] [n id] - Generuje listę graczy z wybranych plemion i sortuje po punktach.", + "help.author": "**{{.Command}}** - pokazuje możliwe formy kontaktu z autorem.", + "help.addgroup": "**{{.Command}}** - dodaje nową grupę obserwacyjną.", + "help.groups": "**{{.Command}}** - pokazuje listę grup dodanych przez administrację tego serwera Discord..", + "help.deletegroup": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] - usuwa grupę obserwacyjną.", + "help.showennobledbarbs": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] - włącza/wyłącza informacje o podbitych wioskach barbarzyńskich.", + "help.observe": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] [serwer] [id plemienia] - dodaje plemię do grupy.", + "help.observations": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] - pokazuje plemiona należące do wybranej grupy.", + "help.deleteobservation": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] [id from {{.ObservationsCommand}}] - usuwa plemię z grupy.", + "help.conqueredvillages": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] - zmienia kanał na którym będą się pojawiać informację o podbitych wioskach w danej grupie. **WAŻNE!** Wywołaj tę komendę na kanale na którym chcesz dostawać te powiadomienia.", + "help.disableconqueredvillages": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] - wyłącza powiadomienia o podbitych wioskach w danej grupie.", + "help.lostvillages": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] - zmienia kanał na którym będą się pojawiać informację o straconych wioskach w danej grupie. **WAŻNE!** Wywołaj tę komendę na kanale na którym chcesz dostawać te powiadomienia.", + "help.disablelostvillages": "**{{.Command}}** [id grupy z {{.GroupsCommand}}] - wyłącza powiadomienia o straconych wioskach w danej grupie.", + + "tribe.invalidPage": "{{.Mention}} Strona musi być liczbą większą od 0.", + "tribe.noTribeID": "{{.Mention}} Nie wprowadziłeś ID plemienia.", + "tribe.title.sortedByOD": "Gracze posortowani według pokonanych przeciwników", + "tribe.title.sortedByODA": "Gracze posortowani według pokonanych przeciwników jako agresor", + "tribe.title.sortedByODD": "Gracze posortowani według pokonanych przeciwników jako obrońca", + "tribe.title.sortedByODS": "Gracze posortowani według pokonanych przeciwników jako wspierający", + "tribe.title.sortedByPoints": "Gracze posortowani według punktów", + "tribe.tribesNotFound": "{{.Mention}} Plemię nie zostało znalezione.", + "tribe.exceededMaximumNumberOfPages": "{{.Mention}} Przekroczyłeś limit stron ({{.Page}}/{{.MaxPage}}).", + "tribe.messageLine": "**{{.Index}}**. [``{{.PlayerName}}``]({{.PlayerURL}}) (Plemię: [``{{.TribeTag}}``]({{.TribeURL}}) | Ranking: **{{.Rank}}** | Wynik: **{{.Score}}**)\n", + + "addGroup.groupLimitHasBeenReached": "{{.Mention}} Osiągnięto limit grup ({{.Total}}/{{.Limit}}).", + "addGroup.success": "{{.Mention}} Nowa grupa została utworzona (ID: {{.ID}}).", + + "deleteGroup.invalidID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "deleteGroup.success": "{{.Mention}} Grupa została usunięta.", + + "groups.noGroupsAdded": "Brak dodanych grup.", + "groups.title": "Lista grup", + + "conqueredVillages.invalidID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "conqueredVillages.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "conqueredVillages.success": "{{.Mention}} Kanał został pomyślnie zmieniony.", + + "disableConqueredVillages.invalidID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "disableConqueredVillages.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "disableConqueredVillages.success": "{{.Mention}} Informacje o podbitych wioskach nie będą się już pokazywały.", + + "lostVillages.invalidID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "lostVillages.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "lostVillages.success": "{{.Mention}} Kanał został pomyślnie zmieniony.", + + "disableLostVillages.invalidID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "disableLostVillages.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "disableLostVillages.success": "{{.Mention}} Informacje o straconych wioskach nie będą się już pokazywały.", + + "observe.invalidGroupID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "observe.invalidTribeID": "{{.Mention}} ID plemienia musi być liczbą większą od 0.", + "observe.serwerIsClosed": "{{.Mention}} Sewer jest zamknięty.", + "observe.serwerNotFound": "{{.Mention}} Serwer nie został znaleziony.", + "observe.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "observe.tribeNotFound": "{{.Mention}} Plemię nie zostało znalezione.", + "observe.observationLimitHasBeenReached": "{{.Mention}} Limit obserwacji dla grupy został osiągnięty ({{.Total}}/{{.Limit}}).", + "observe.success": "{{.Mention}} Dodano.", + + "deleteObservation.invalidGroupID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "deleteObservation.invalidObservationID": "{{.Mention}} ID obserwacji musi być liczbą większą od 0.", + "deleteObservation.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "deleteObservation.success": "{{.Mention}} Usunięto.", + + "observations.invalidGroupID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "observations.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "observations.title": "Obserwowane plemiona\nIndex | ID - Serwer - Plemię", + + "showEnnobledBarbs.invalidGroupID": "{{.Mention}} ID grupy musi być liczbą większą od 0.", + "showEnnobledBarbs.groupNotFound": "{{.Mention}} Grupa nie została znaleziona.", + "showEnnobledBarbs.success_1": "{{.Mention}} Powiadomienia o podbitych barbarkach nie będą się już dłużej pokazywały.", + "showEnnobledBarbs.success_2": "{{.Mention}} Włączono powiadomienia o podbitych barbarkach.", + + "cron.lostVillages.title": "Stracone wioski", + "cron.conqueredVillages.title": "Podbite wioski", + "cron.checkEnnoblements.msgLine": "{{.NewOwner}} [{{.NewOwnerTribe}}] podbił wioskę {{.Village}} (Poprzedni właściciel: {{.OldOwner}} [{{.OldOwnerTribe}}])", + + "api.defaultError": "{{.Mention}} Wystąpił błąd podczas pobierania danych z API, prosimy spróbować później.", + + "pagination.labelDisplayedPage": "Strona: {{.Page}} z {{.MaxPage}}", + + "internalServerError": "{{.Mention}} Wewnętrzny błąd serwera, prosimy spróbować później." +}