예제 #1
0
def do():
    priv = arg(4, None)
    if priv:
        ret = hermes.subscribe(arg(1), arg(2), arg(3), priv)
    else:
        ret = hermes.subscribe(arg(1), arg(2), arg(3))
    rprint(ret)
예제 #2
0
파일: subscribe.py 프로젝트: Ri0n/Hermes
def do():
    priv = arg(4, None)
    if priv:
        ret = hermes.subscribe(arg(1), arg(2), arg(3), priv)
    else:
        ret = hermes.subscribe(arg(1), arg(2), arg(3))
    rprint(ret)
예제 #3
0
def do():
    ret = hermes.directNotify(arg(1), [[arg(2), arg(3, 'XMPP')]])
    rprint(ret)
예제 #4
0
파일: notify.py 프로젝트: Ri0n/Hermes
#!/usr/bin/python

from settings import hermes, arg, rprint

msg = arg(1, "I'm great achtung-daemon Hermes!")
rprint(hermes.notify([msg, "<div style='background-color:red'>"+msg+"</div>"],["error"]))
예제 #5
0
파일: unsubscribe.py 프로젝트: Ri0n/Hermes
def do():
    ret = hermes.unsubscribe(arg(1), arg(2))
    rprint(ret)
예제 #6
0
파일: notify.py 프로젝트: Ri0n/Hermes
#!/usr/bin/python

from settings import hermes, arg, rprint

msg = arg(1, "I'm great achtung-daemon Hermes!")
rprint(
    hermes.notify([msg, "<div style='background-color:red'>" + msg + "</div>"],
                  ["error"]))