"""Work-item follow-up bot. Start it with: python -m bot""" import time ITEMS = ["WI-1001", "WI-1002", "WI-1003"] def say(line): print(line) time.sleep(0.2) def main(): say("[step 1] Initializing") say("Loading settings from config.ini") say("Completed loading 3 work items") say("[step 2] Logging in to the portal") say("Login page loaded") say("[login] ok") say("[step 3] Processing work items") for i, item in enumerate(ITEMS, 1): say(f"[item] {item} updated ({i}/{len(ITEMS)})") say("WARNING: portal slow to respond, waited 5s") say("ERROR: could not attach the note to WI-1003") say("[step 4] Writing the summary") say(f"[all done] {len(ITEMS)} items processed") if __name__ == "__main__": main()