Skip to content

Fix: 검증 실패 시 ✅ 대신 ❌ reaction 추가#34

Merged
SamTheKorean merged 1 commit intomainfrom
fix/reaction-on-failure
Apr 25, 2026
Merged

Fix: 검증 실패 시 ✅ 대신 ❌ reaction 추가#34
SamTheKorean merged 1 commit intomainfrom
fix/reaction-on-failure

Conversation

@SamTheKorean
Copy link
Copy Markdown
Contributor

문제

후원 금액 부족 등 검증 실패 케이스에서 ✅ reaction이 달리는 버그.

❌ 가장 최근 후원 금액($1)이 $5 미만입니다. → ✅ reaction

원인

processVerify는 실패 케이스에서 예외를 던지지 않고 /⚠️로 시작하는 문자열을 반환함. try 블록이 정상 완료로 처리되어 항상 ✅ reaction이 추가됐음.

수정

응답 메시지의 첫 글자로 reaction 결정:

const reaction = result.startsWith("❌") || result.startsWith("⚠️") ? "❌" : "✅";
응답 시작 reaction
ℹ️
⚠️
예외 발생

관련 이슈

ref #29

@SamTheKorean SamTheKorean merged commit 12d78e7 into main Apr 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant