Ejemplo n.º 1
0
def input():
	actionflg=True
	inputs=config.get('if').keys()
	for input in inputs:
		logger.debug(input)
		brain=Brain(config)
		brain.action(input)
		if not brain.outflag:
			actionflg=False
			break
	if actionflg:
		action()
Ejemplo n.º 2
0
def action():
	print "hello world"
	actions=config.get('then').get('actions')
	for action in actions:
		brain=Brain(action.get('args'))
		brain.action(action.get('name'))