mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Improve Help command
This commit is contained in:
parent
0d8c1f96dc
commit
91b924ad11
@ -91,9 +91,10 @@ public object BuiltInCommands {
|
||||
), BuiltInCommand {
|
||||
@Handler
|
||||
public suspend fun CommandSender.handle() {
|
||||
sendMessage(allRegisteredCommands.joinToString {
|
||||
it.usage + "\n\n"
|
||||
})
|
||||
sendMessage(
|
||||
allRegisteredCommands.joinToString("\n\n") { "◆ ${it.usage}" }.lines().filterNot(String::isBlank)
|
||||
.joinToString("\n")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user