예제 #1
0
def cmd(send, msg, args):
    """Return either a random value or the specified one from errno.h.
    Syntax: !errno <errorcode|list>
    """
    send(parse_header('errno', msg))
예제 #2
0
파일: signal.py 프로젝트: RichardLun/cslbot
def cmd(send, msg, _):
    """Return either a random value or the specified one from signal.h.
    Syntax: {command} <signal|list>
    """
    send(parse_header('signal', msg))