Fix help command
This commit is contained in:
parent
e3ac2c9006
commit
7964fde51b
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -161,10 +161,10 @@ async def help(args, room, event):
|
||||||
# No command specified, send command list
|
# No command specified, send command list
|
||||||
source_text = f"\n<a href=\"{settings['source_url']}\">Source Code</a>" if settings["source_url"] else ""
|
source_text = f"\n<a href=\"{settings['source_url']}\">Source Code</a>" if settings["source_url"] else ""
|
||||||
helptext = "Admin Commands:\n"
|
helptext = "Admin Commands:\n"
|
||||||
for command in settings["admin_command_list"].keys():
|
for command in settings["admin_command_list"]:
|
||||||
helptext += settings["help_messages"][command] + "\n"
|
helptext += settings["help_messages"][command] + "\n"
|
||||||
helptext += "\nUser Commands:\n"
|
helptext += "\nUser Commands:\n"
|
||||||
for command in settings["command_list"].keys():
|
for command in settings["command_list"]:
|
||||||
helptext += settings["help_messages"][command] + "\n"
|
helptext += settings["help_messages"][command] + "\n"
|
||||||
helptext += "\n\nArguments: (optional) [required] {admin only, optional}"
|
helptext += "\n\nArguments: (optional) [required] {admin only, optional}"
|
||||||
return await send_text(room.room_id, helptext.replace("{prefix}", settings["prefix"]) + source_text)
|
return await send_text(room.room_id, helptext.replace("{prefix}", settings["prefix"]) + source_text)
|
||||||
|
|
Loading…
Reference in a new issue