errbot.core_plugins.acls module

class errbot.core_plugins.acls.ACLS(bot, name=None)[source]

Bases: errbot.botplugin.BotPlugin

This plugin implements access controls for commands, allowing them to be restricted via various rules.

access_denied(msg, reason, dry_run)[source]
acls(msg, cmd, args, dry_run)[source]

Check command against ACL rules as defined in the bot configuration.

Parameters:
  • msg -- The original chat message.
  • cmd -- The command name itself.
  • args -- Arguments passed to the command.
  • dry_run -- True when this is a dry-run.
errbot.core_plugins.acls.ciglob(text, patterns)[source]

Case-insensitive version of glob.

Match text against the list of patterns according to unix glob rules. Return True if a match is found, False otherwise.

errbot.core_plugins.acls.get_acl_usr(msg)[source]

Return the ACL attribute of the sender of the given message

errbot.core_plugins.acls.glob(text, patterns)[source]

Match text against the list of patterns according to unix glob rules. Return True if a match is found, False otherwise.