Skip to content

Commit

Permalink
Merge pull request itfactory-tm#43 from itfactory-tm/format-help
Browse files Browse the repository at this point in the history
Improve help formatting
  • Loading branch information
meyskens authored Apr 10, 2020
2 parents ab0954c + 0e27540 commit 0c84263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func handleHelpReaction(s *discordgo.Session, r *discordgo.MessageReactionAdd) {
sort.Strings(keys)

for _, key := range keys {
messages = append(messages, fmt.Sprintf("%s: %s", data[key].Name, data[key].Description))
messages = append(messages, fmt.Sprintf("* `%s`: %s", data[key].Name, data[key].Description))
}

embed := helpMenu()
Expand All @@ -112,7 +112,7 @@ func helpMenu() *Embed {

categories := []string{}
for category := range helpData {
categories = append(categories, fmt.Sprintf("%d:\t%s", category, command.CategoryToString(category)))
categories = append(categories, fmt.Sprintf("* `%d`:\t%s", category, command.CategoryToString(category)))
}
sort.Strings(categories)
embed.AddField("kies een categorie", strings.Join(categories, "\n"))
Expand Down

0 comments on commit 0c84263

Please sign in to comment.