MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _async_load_community_data

Function _async_load_community_data

octobot/cli.py:263–275  ·  view source on GitHub ↗
(community_auth, config, logger, is_first_startup)

Source from the content-addressed store, hash-verified

261
262
263async def _async_load_community_data(community_auth, config, logger, is_first_startup):
264 if constants.IS_CLOUD_ENV:
265 if is_first_startup:
266 if not community_auth.is_logged_in():
267 raise authentication.FailedAuthentication(
268 "Impossible to load community data without an authenticated user account"
269 )
270 # auto config
271 if constants.USE_FETCHED_BOT_CONFIG:
272 await _apply_db_bot_config(logger, config, community_auth)
273 else:
274 await _apply_community_startup_info_to_config(logger, config, community_auth)
275 await community_auth.community_bot.on_started_bot()
276
277
278def _apply_forced_configs(community_auth, logger, config, is_first_startup):

Callers 1

_apply_forced_configsFunction · 0.85

Calls 4

_apply_db_bot_configFunction · 0.85
on_started_botMethod · 0.80
is_logged_inMethod · 0.45

Tested by

no test coverage detected