Update of /cvsroot/pybot/pybot/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv6970/scripts
Added Files:
pybotmsg.py
Log Message:
Major work on pybot!!
* modules/*: All modules moved to the new re matching system.
* command.py: Removed old matching system.
* modules/*: Pickling replaced by sqlite in all places were
persistence was needed.
* modules/*: All modules have inline help.
* modules/*: All modules have permission help.
* modules/infopack.py: Infopacks have help now.
* *: Many method names changed to a better alternative.
* options.py: Removed soft/hard relation. Now there's a single
dict that might resist to reboots, if necessary. Notice that
no standard module uses it for persistent options, since they
use sqlite.
* modules/example.py: Introduced basic sample module.
* modules/soap.py: Obsoleted. Use xmlrpc instead.
* scripts/pybotmsg.py: Added a basic xmlrpc client.
* runner.py: Included other modules in the "default load" ones.
* *: Other changes I probably forgot.
--- NEW FILE: pybotmsg.py ---
#!/usr/bin/python
import xmlrpclib
import sys
# You'll probably want to "chmod 700" this script.
AUTH = {"username": "<username>",
"password": "<password>",
"server": "irc.example.com",
"target": "#channel"}
PYBOT = "http://pybot.host:8460"
if len(sys.argv) != 2:
sys.exit("Usage: pybotmsg.py \"Message ...\"")
proxy = xmlrpclib.ServerProxy(PYBOT)
proxy.sendmsg(AUTH, sys.argv[1], 1)
|