Separate bot into config and state