{"id":16393554,"url":"https://github.com/code-yeongyu/moragi","last_synced_at":"2025-07-10T07:37:49.370Z","repository":{"id":143585287,"uuid":"611118878","full_name":"code-yeongyu/moragi","owner":"code-yeongyu","description":"모락이: CJ 프레시밀 메뉴 슬랙봇","archived":false,"fork":false,"pushed_at":"2023-04-10T03:41:09.000Z","size":2054,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T02:22:28.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-yeongyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-08T06:33:24.000Z","updated_at":"2023-04-07T07:00:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3afcffa-8e15-4005-87cb-41c00c5ed1ca","html_url":"https://github.com/code-yeongyu/moragi","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/code-yeongyu/moragi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fmoragi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fmoragi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fmoragi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fmoragi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-yeongyu","download_url":"https://codeload.github.com/code-yeongyu/moragi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fmoragi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545523,"owners_count":23625473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T04:53:35.121Z","updated_at":"2025-07-10T07:37:49.344Z","avatar_url":"https://github.com/code-yeongyu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 모락이 🍚\n\n[![codecov](https://codecov.io/gh/code-yeongyu/moragi/branch/master/graph/badge.svg?token=SK43MGRU5X)](https://codecov.io/gh/code-yeongyu/moragi)\n\n모락이는 [CJ 프레시밀](https://front.cjfreshmeal.co.kr/)에서 오늘의 식단 정보를 가져와 슬랙 웹훅을 통해 전송하는 기능을 제공하는 슬랙 봇입니다 ✨\n\n## 사용중인 회사들\n\n![무신사](https://image.msscdn.net/mfile_s01/fb/share_musinsa.png)\n\n- cron schedule 설정에 따라 평일 한국시간 11시 30분, 18시 마다 작동 되고있어요. 따라서, 별도의 서버 없이 작동하고 있는 중입니다!\n  - cron 의 경우에는 github action 의 load 가 높으면 작동하지 않는 문제가 있어 외부 서비스인 cron-job.org 에서 트리거 하는 형식으로 구현되어 있어요.\n  - 잘 작동하고있는지 상태를 보려면 [이곳](https://54qwszd1.status.cron-job.org/)을 보면 됩니다.\n\n_또 사용중이신 곳이 있다면 편하게 Issue 나 PR 로 남겨주세요 !_\n\n## 사용법 📖\n\n### 사전 준비물 🔨\n\n1. 슬랙 워크스페이스\n1. 슬랙 웹훅 URL\n    1. 없다면 생성해주세요! 구글에 좋은 가이드가 많습니다.\n1. *CJ 프레시밀을 사용하는 구내식당*\n    - 안타깝게도 이건 구글링 하셔도 생성이 불가능합니다 !\n\n### 시작 🚀\n\n아래 이미지 처럼 `Use this template` -\u003e `Create a new repository` 를 통해 본 저장소를 복제합니다.\n\n![clone](https://raw.githubusercontent.com/code-yeongyu/moragi/master/images/clone.png)\n\n복제한 저장소의 `Settings` -\u003e `Secrets` 에서 `SLACK_WEBHOOK_URL` 에 슬랙 웹훅 URL 을 추가해주세요! 그렇다면 아래와 같을것입니다.\n\n![secrets](https://raw.githubusercontent.com/code-yeongyu/moragi/master/images/actions-secrets.png)\n\n이제는 지금 회사의 식당 정보를 등록해야 하는데요! curl 와 jq 를 이용해서 `CJ_FRESH_MEAL_STORE_ID` 를 알아내야 합니다. 없다면 미리 설치해주시고, 다음의 명령어를 입력해주세요!\n\n```sh\ncurl 'https://front.cjfreshmeal.co.kr/store/v1/search-store?page=1\u0026schKey=\u003c회사명\u003e\u0026isList=false' | jq '.data.storeList[0].idx'\n```\n\n그러면 아래 사진과 같이, 결과값이 나옵니다. 이 중 숫자값만 복사해주세요.\n\n![store_id](https://raw.githubusercontent.com/code-yeongyu/moragi/master/images/store-id.png)\n\n이번에는 `Settings` -\u003e `Variables` 에서 `CJ_FRESH_MEAL_STORE_ID` 에 해당 값을 추가해주세요!\n\n![variables](https://raw.githubusercontent.com/code-yeongyu/moragi/master/images/actions-variables.png)\n\n이제 모두 설정이 끝났습니다! 이제 아래 사진처럼 `Actions` -\u003e `일해라 모락이` -\u003e `Run workflow` 을 통해 확인해 볼 수 있습니다!\n\n![work-moragi](https://raw.githubusercontent.com/code-yeongyu/moragi/master/images/work-moragi.png)\n\n이제 밥 먹으러 가볼까요!! 😋\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-yeongyu%2Fmoragi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-yeongyu%2Fmoragi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-yeongyu%2Fmoragi/lists"}