MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / initialize

Function initialize

pokecli.py:103–112  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 4

migrateMethod · 0.95
get_connectionMethod · 0.95
DatastoreClass · 0.90
PokemonGoBotClass · 0.90

Tested by

no test coverage detected