(config)
| 101 | bot.workers = tree |
| 102 | |
| 103 | def initialize(config): |
| 104 | from pokemongo_bot.datastore import Datastore |
| 105 | |
| 106 | ds = Datastore(conn_str='/data/{}.db'.format(config.username)) |
| 107 | for directory in ['pokemongo_bot', 'pokemongo_bot/cell_workers']: |
| 108 | ds.migrate(directory + '/migrations') |
| 109 | |
| 110 | bot = PokemonGoBot(ds.get_connection(), config) |
| 111 | |
| 112 | return bot |
| 113 | |
| 114 | def setup_logging(config): |
| 115 | log_level = logging.ERROR |
no test coverage detected