.help returns an error if command not found

This commit is contained in:
iou1name 2018-05-29 13:59:38 -04:00
parent 447e0be03c
commit 4140f52c69

View File

@ -15,7 +15,7 @@ def help(bot, trigger):
name = trigger.group(2)
name = name.lower()
if name not in bot.commands:
return
return bot.msg("Command not found.")
cmd = bot.commands[name]
docstring, examples = cmd.doc
if examples: