Refactored bot to be a module