From de90699827d949e5aed7f7c18dcad910af0cceea Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Wed, 15 Jul 2020 12:17:33 +0200 Subject: [PATCH] fix help command --- discord/public_commands.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/discord/public_commands.go b/discord/public_commands.go index ce02b94..bb06717 100644 --- a/discord/public_commands.go +++ b/discord/public_commands.go @@ -55,9 +55,8 @@ func (s *Session) handleHelpCommand(m *discordgo.MessageCreate) { - **%s** [id grupy z %s] - wyświetla wszystkie obserwowane plemiona - **%s** [id grupy z %s] [id z %s] - usuwa plemię z obserwowanych - **%s** [id grupy z %s] - ustawia kanał na którym będą wyświetlać się informacje o podbitych wioskach -- **%s** [id grupy z %s] - informacje o podbitych wioskach na wybranym kanale nie będą się już pojawiały +- **%s** [id grupy z %s] - informacje o podbitych wioskach nie będą się już pojawiały - **%s** [id grupy z %s] - ustawia kanał na którym będą wyświetlać się informacje o straconych wioskach -- **%s** [id grupy z %s] - informacje o straconych wioskach na wybranym kanale nie będą się już pojawiały `, AddGroupCommand.WithPrefix(s.cfg.CommandPrefix), GroupsCommand.WithPrefix(s.cfg.CommandPrefix), @@ -78,6 +77,11 @@ func (s *Session) handleHelpCommand(m *discordgo.MessageCreate) { GroupsCommand.WithPrefix(s.cfg.CommandPrefix), LostVillagesCommand.WithPrefix(s.cfg.CommandPrefix), GroupsCommand.WithPrefix(s.cfg.CommandPrefix), + ) + + commandsForGuildAdmins2 := fmt.Sprintf(` +- **%s** [id grupy z %s] - informacje o straconych wioskach nie będą się już pojawiały + `, UnObserveLostVillagesCommand.WithPrefix(s.cfg.CommandPrefix), GroupsCommand.WithPrefix(s.cfg.CommandPrefix), ) @@ -87,6 +91,7 @@ func (s *Session) handleHelpCommand(m *discordgo.MessageCreate) { SetDescription("Komendy oferowane przez bota"). AddField("Dla wszystkich", commandsForAll). AddField("Dla adminów", commandsForGuildAdmins). + AddField("Dla adminów 2", commandsForGuildAdmins2). MessageEmbed) }