logic bot works