- class errbot.core_plugins.cnf_filter.CommandNotFoundFilter(bot, name=None)¶
- cnf_filter(msg, cmd, args, dry_run, emptycmd=False)¶
Check if command exists. If not, signal plugins. This plugin will be called twice: once as a command filter and then again as a “command not found” filter. See the emptycmd parameter.
msg – Original chat message.
cmd – Parsed command.
args – Command arguments.
dry_run – True when this is a dry-run.
bool) – False when this command has been parsed and is valid. True if the command was not found.