Extracted the bot logic into a separate class and converted horn.py to a wrapper/runner.