예제 #1
0
def main():
    global window

    # The disaster assistant
    agent = Assistant(window)

    while 1:
        # Get the message
        msg = input()
        if msg == "exit":
            print("Exiting...")
            break
        # Perform action based on message
        agent.decode(msg)

    agent.assistant_exit()
    window.close_window()