Skip to content

블로그 발행 확인 용 디스코드 봇 통합#45

Merged
DaleSeo merged 3 commits into
mainfrom
feat/blog-study-attendance
Jul 4, 2026
Merged

블로그 발행 확인 용 디스코드 봇 통합#45
DaleSeo merged 3 commits into
mainfrom
feat/blog-study-attendance

Conversation

@DaleSeo

@DaleSeo DaleSeo commented Jul 3, 2026

Copy link
Copy Markdown
Member

현재 blog-study 저장소에 블로그 발행 확인 용 디스코드 봇이 있습니다. 그런데 저희 커뮤니티에서 사용하는 Cloudflare에서는 Rust 코드를 바로 배포할 수는 없어서 Wasm으로 변환을 해야합니다. 그런데 그러기에는 코드가 너무 적어서 그냥 간단하게 JS로 포팅하기로 민수님과 협의하였습니다. 그래서 가장 적합한 곳인 community-manager 저장소로 통합합니다.

Testing

2026-07-02 at 22 15 40

@DaleSeo DaleSeo marked this pull request as draft July 3, 2026 00:46
@DaleSeo DaleSeo force-pushed the feat/blog-study-attendance branch from a7b3882 to f748a12 Compare July 3, 2026 01:08
@DaleSeo DaleSeo changed the title feat: 블로그 스터디 주간 출석 체크 추가 블로그 발행 확인 용 디스코드 봇 병합 Jul 3, 2026
@DaleSeo DaleSeo changed the title 블로그 발행 확인 용 디스코드 봇 병합 블로그 발행 확인 용 디스코드 봇 통합 Jul 3, 2026
@DaleSeo DaleSeo marked this pull request as ready for review July 3, 2026 02:39
@DaleSeo DaleSeo force-pushed the feat/blog-study-attendance branch from f748a12 to 30c9357 Compare July 3, 2026 02:44
Comment thread src/index.ts
}

async function handleChannelJoin(env: Env): Promise<void> {
async function handleLeetCodeSignUp(env: Env): Promise<void> {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

핸들러가 하나만 있을 때는 이름이 별로 안 중요한데 두 개가 되어 좀 더 구분이 가능하도록 이름을 바꿨습니다.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 기존것은 너무 generic해서 바꾸는게 맞는것 같습니다!

Comment thread src/index.ts
Comment on lines +54 to +58
if (event.cron === "0 0 * * MON") {
ctx.waitUntil(handleBlogPublishCheck(env, event.scheduledTime));
} else {
ctx.waitUntil(handleLeetCodeSignUp(env));
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요기서 두 개의 핸들러가 분기가 됩니다.

@SamTheKorean SamTheKorean left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@lms0806

lms0806 commented Jul 4, 2026

Copy link
Copy Markdown

수고하셨습니다!

Comment thread src/index.ts
/** blog-study 원본 check_inactive_users 의 안내 문구. */
function buildReport(warn: string[], late: string[]): string {
if (warn.length === 0 && late.length === 0) {
return `지난주 월요일 09:00부터 이번주 월요일 09:00까지 **${ROLE_LABEL}** 역할 대상자 모두 참여해서, 경고나 지각 대상자가 없습니다!`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지각도 넣으실 예정이신가요?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 코드에 지각까지 넣어서 올려놨었네요

지각 반영까지 하는 것도 좋을거 같습니다.

근데 스터디 방식에 경고만 있어, 해당 내용에 대하여 시작 전에 언급이 필요해보입니다.

스터디 시작하면 제가 스터디 채널에 말씀드리겠습니다.

@DaleSeo DaleSeo merged commit 50e6fa5 into main Jul 4, 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.

3 participants