mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-16 16:15:59 +00:00
fix(commands): remove examples from command discovery
This commit is contained in:
1 parent
b5c7427520
commit
a211b7f8b7
22 files changed
+47
-154
No files matched your search
@@ -50,9 +50,6 @@ func RenderHelp(reg *modules.Registry) string {
|
||||
fmt.Fprintf(&sb, "\n%s %s",
|
||||
html.EscapeString(command.InvocationSentence()),
|
||||
html.EscapeString(command.SummarySentence()))
|
||||
if example := command.ExampleInvocation(); example != "" {
|
||||
fmt.Fprintf(&sb, " Eg: <code>%s</code>", html.EscapeString(example))
|
||||
}
|
||||
}
|
||||
sections = append(sections, sb.String())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user