search for: pyast

Displaying 1 result from an estimated 1 matches for "pyast".

Did you mean: past
2016 Jan 06
2
No joy with my first AGI Python script
...return sys.stdin.readline().strip() while 1: line = sys.stdin.readline().strip() if line == '': break key,data = line.split(':') if key[:4] == 'agi_': key = key.strip()[4:] data = data.strip() if key: env[key] = data #comm("Verbose(0,pyast: %s)" % sys.argv) comm('SAY NUMBER 123 ""') sys.stderr.write("AGI Environment Dump:\n"); for key in env.keys(): sys.stderr.write(" -- %s = %s\n" % (key, env[key])) sys.stderr.flush() The extension is; exten => *22,1,Verbose(0,${CHANNEL(peername)}...