errbot.core_plugins.cnf_filter module

class errbot.core_plugins.cnf_filter.CommandNotFoundFilter(bot, name=None)[source]

Bases: BotPlugin

cnf_filter(msg, cmd, args, dry_run, emptycmd=False)[source]

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.

Parameters:
  • msg – Original chat message.

  • cmd – Parsed command.

  • args – Command arguments.

  • dry_run – True when this is a dry-run.

  • emptycmd (bool) – False when this command has been parsed and is valid. True if the command was not found.