Exec plugin for errbot
Execute an external command when the bot is talked to.
I wrote it so I can write bots in PHP, while letting errbot do all the connection handling and stuff.
The executed script gets the message as first, and the username sending the message as second parameter.
In config.py
:
EXEC = { 'command': 'echo' }
Useful default errbot config settings:
Only allow some users to talk to the bot:
ACCESS_CONTROLS_DEFAULT = { 'allowusers': ('gbin@localhost', 'user@example.org'), }
errbot-exec
is licensed under the AGPL v3 or later.
Written by Christian Weiske, cweiske+errbot@cweiske.de