Skip to content
Snippets Groups Projects
Commit 35995ec3 authored by Frederic Aust's avatar Frederic Aust
Browse files

Bugfix: Vergleiche haben nicht funktioniert, da manche Wörter in camelCase...

Bugfix: Vergleiche haben nicht funktioniert, da manche Wörter in camelCase waren und nicht verkleinert wurden
parent 2790200b
Branches
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ class ModuleHelp:
for category in self.help_dict:
for command in self.help_dict[category]:
if keyword in [x.lower() for x in command["Names"]] and (groupInfo is None or keyword[1:] in groupInfo["COMMANDS"]):
if keyword in [x.lower() for x in command["Names"]] and (groupInfo is None or keyword[1:].lower() in groupInfo["COMMANDS"]):
answer += f'Name(s): {", ".join(str(x) for x in command["Names"])}\n'
answer += f'Description: \n{command["Description"]}'
break
......@@ -55,10 +55,10 @@ class ModuleHelp:
for command in self.help_dict[category]:
cmds = []
for cmd in command["Names"]:
if (groupInfo is None or cmd[1:] in groupInfo["COMMANDS"]):
if (groupInfo is None or cmd[1:].lower() in groupInfo["COMMANDS"]):
cmds.append(cmd)
if len(cmds)>0:
cmdList += f'{", ".join(str(x) for x in [x.lower() for x in cmds])}\n'
cmdList += f'{", ".join(str(x) for x in cmds)}\n'
if len(cmdList) >0:
answer += f'## {category} ##\n'
answer+= cmdList
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment