async def handle_aoeu(prompter): log.print(term.green(f'starting match_aoeu for {prompter.file.name} ...')) async for event in prompter: log.print(prompter.file.name, term.dgreen(f' {prompter.trigger}:'), f' {event.match} | ', term.green(event.line.strip()))
async def handle_and(prompter): log.print(term.green(f'starting match_and for {prompter.file.name} ...')) while True: event = await prompter() log.print(prompter.file.name, term.dgreen(f' {prompter.trigger}:'), f' {event.match} | ', term.green(event.line.strip()))
async def handle_error(prompter): log.print(term.green(f'starting match_error for {prompter.file.name} ...')) async for event in prompter: log.print(prompter.file.name, term.dgreen(f' {prompter.trigger}:'), f' {event.match} | ', term.green(event.line.strip()) ) event_count['error'] += 1