docs: 명언 로테이션 개선 문서 최종 업데이트

- 60개 메시지 확장 반영
- 날짜 기반 구현 코드 문서화

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
happybell80 2025-09-26 11:38:53 +09:00
parent 8ce2d19396
commit 12ba27bac0

View File

@ -24,7 +24,7 @@ def _get_random_messages(self) -> Tuple[str, str, Tuple[str, str, str]]:
### 문제점
- 완전 랜덤 선택으로 같은 명언이 연속 반복될 수 있음
- 20개 오프닝, 20개 클로징, 명언 개수는 로더에서 로깅됨 (라인 88)
- 60개 오프닝, 60개 클로징, 60개 명언으로 확장됨 (파일 수정됨)
- 로테이션 순서나 사용 기록 추적 없음
- 환경변수(HEADLINES_OPENER/CLOSER) 설정 시 랜덤 선택 건너뜀 (라인 105-107)
@ -36,6 +36,7 @@ def _get_random_messages(self) -> Tuple[str, str, Tuple[str, str, str]]:
- 오늘 날짜를 기준으로 인덱스 계산
- 인덱스 = (오늘의 일수) % (명언 개수)
- DB 수정 불필요, 코드만 변경
- 60개 메시지로 약 6번/년 반복 (기존 20개는 18번/년)
### 구현 필요사항
1. _get_random_messages() 메서드 수정