- Log into http://padagraph.io
- Get you padagraph token from http://padagraph.io/account/me/generate_auth_token
- Install requirements
$ pip install -r requirements.txt
from botapi import Botio
gid = "graphToListen"
host="http://notifications.padagraph.io"
port=80
io = Botio(host, port)
def wrap(e):
def log(*args):
print e, args
return log
io.listenTo(gid)
for event in Botio.events:
io.on(event, wrap(event) )
print "botio is listening to %s @ %s:%s" % ( gid, host, port )
io.socket.wait()connecting @ http://notifications.padagraph.io:80 botio is listening to graphToListen @ http://notifications.padagraph.io:80