Skip to content

update code#22

Merged
sehyunnoh merged 1 commit into
mainfrom
auto_verify
Apr 23, 2026
Merged

update code#22
sehyunnoh merged 1 commit into
mainfrom
auto_verify

Conversation

@sehyunnoh
Copy link
Copy Markdown
Contributor

@sehyunnoh sehyunnoh commented Apr 23, 2026

Summary

Discord 포럼 채널 기반 자동 가입 처리 기능 초기 구현.

인프라 결정: 별도 서버 없이 기존 CF Worker에 scheduled 핸들러 추가 (참고: #30)

추가된 내용

  • discord.ts: getForumPosts, replyToMessage, addReaction, verifySignature 함수 추가
  • index.ts: handleChannelJoin 함수 추가
    • 20분마다 cron 실행 (*/20 * * * *)
    • 포럼 채널 활성 스레드 조회 → reaction 없는 미처리 포스트 필터링
    • 메시지 파싱 (github:, team:, role: 필드 추출)
    • processVerify 호출 → 결과 reply + ✅/❌ reaction
  • types.ts: STUDY_JOIN_CHANNEL_ID 환경변수 추가
  • wrangler.jsonc: cron 트리거 설정 추가

신청 포맷 (초안)

github: username
team: teamname
role: rolename

관련 이슈

closes #29
ref #30

@sehyunnoh sehyunnoh merged commit d5abbd1 into main Apr 23, 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.

Discord 포럼 신청 자동화 구현 및 파싱 버그 수정

2 participants