refactored to make the bot have a cleaner structure and also
simplified the config/logging setup and made it start as a daemon