add bot logic to external notify.