Refactor davide bot