chore: lowercase match

This commit is contained in:
2024-09-26 18:13:09 +08:00
parent 862670183a
commit 8110ed6cd4
1 file changed
+1 -1
@@ -39,7 +39,7 @@ class HelpCommand : BaseCommand() {
} else {
val commandName = args.first().replace("/", "")
val matchedCommand = commands.find {
it.commandNames.map { map -> map.replace("/", "") }.contains(commandName)
it.commandNames.map { map -> map.replace("/", "").lowercase() }.contains(commandName)
}
if (matchedCommand == null) {
message.reply("未查询到该命令")