.help returns an error if command not found
This commit is contained in:
parent
447e0be03c
commit
4140f52c69
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user