.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 = trigger.group(2)
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
if name not in bot.commands:
|
if name not in bot.commands:
|
||||||
return
|
return bot.msg("Command not found.")
|
||||||
cmd = bot.commands[name]
|
cmd = bot.commands[name]
|
||||||
docstring, examples = cmd.doc
|
docstring, examples = cmd.doc
|
||||||
if examples:
|
if examples:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user