(community_auth, config, logger, is_first_startup)
| 261 | |
| 262 | |
| 263 | async 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 | |
| 278 | def _apply_forced_configs(community_auth, logger, config, is_first_startup): |
no test coverage detected