боты, русификация, подключение ИИ

This commit is contained in:
2026-07-31 19:45:21 +04:00
parent 85adbe19da
commit b5c0a8a27a
118 changed files with 2928 additions and 482 deletions
+28
View File
@@ -15,6 +15,7 @@ if [[ -f "$ENV_FILE" ]]; then
fi
PLAYERBOTS_RUSSIAN_NAMES="${ACORE_PLAYERBOTS_RUSSIAN_NAMES:-1}"
PLAYERBOTS_AI_ENABLED="${ACORE_PLAYERBOTS_AI_ENABLED:-0}"
usage() {
cat <<EOF
@@ -175,6 +176,19 @@ if ! [[ "$PLAYERBOTS_RUSSIAN_NAMES" =~ ^[01]$ ]]; then
exit 1
fi
if ! [[ "$PLAYERBOTS_AI_ENABLED" =~ ^[01]$ ]]; then
printf 'ACORE_PLAYERBOTS_AI_ENABLED must be 0 or 1, got: %s\n' \
"$PLAYERBOTS_AI_ENABLED" >&2
exit 1
fi
if [[ "$PLAYERBOTS_AI_ENABLED" == "1" ]] && \
{ [[ -z "${YANDEX_AI_API_KEY:-}" ]] || [[ -z "${YANDEX_AI_FOLDER_ID:-}" ]]; }; then
printf 'Playerbots AI requires YANDEX_AI_API_KEY and YANDEX_AI_FOLDER_ID in %s\n' \
"$ENV_FILE" >&2
exit 1
fi
log "applying module configuration"
bash "$ROOT_DIR/setup-modules.sh"
@@ -218,6 +232,20 @@ bash "$ROOT_DIR/setup-modules.sh"
log "initializing client data"
run_one_shot_service "ac-client-data-init" "ac-client-data-init"
if [[ "$PLAYERBOTS_AI_ENABLED" == "1" ]]; then
log "starting playerbots AI bridge"
if [[ -n "$BUILD_FLAG" ]]; then
docker compose up -d --build playerbots-ai
else
docker compose up -d playerbots-ai
fi
if ! wait_for_healthy "playerbots-ai" 60; then
print_service_logs "playerbots-ai"
printf 'playerbots-ai did not become healthy\n' >&2
exit 1
fi
fi
log "starting authserver and worldserver"
if [[ -n "$BUILD_FLAG" ]]; then
docker compose up -d --build ac-authserver ac-worldserver