Refactored bot ticking
fixed broken tests and lint errors