{"id":17043101,"url":"https://github.com/mizzy/alexa-gohan","last_synced_at":"2025-08-20T07:11:44.981Z","repository":{"id":27436995,"uuid":"113888630","full_name":"mizzy/alexa-gohan","owner":"mizzy","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-26T08:04:40.000Z","size":7,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T04:48:36.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizzy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-11T17:31:59.000Z","updated_at":"2020-07-08T11:52:35.000Z","dependencies_parsed_at":"2022-07-17T03:16:06.189Z","dependency_job_id":null,"html_url":"https://github.com/mizzy/alexa-gohan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mizzy/alexa-gohan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Falexa-gohan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Falexa-gohan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Falexa-gohan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Falexa-gohan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizzy","download_url":"https://codeload.github.com/mizzy/alexa-gohan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizzy%2Falexa-gohan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271280679,"owners_count":24732047,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-14T09:28:07.372Z","updated_at":"2025-08-20T07:11:44.960Z","avatar_url":"https://github.com/mizzy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alexa-gohan\n\n\n[![alexa-gohan](http://img.youtube.com/vi/wxj7vpirw-k/0.jpg)](http://www.youtube.com/watch?v=wxj7vpirw-k \"alexa-gohan\")\n\n## これは何？\n\n「アレクサ、ごはんだよを開いて」  \n「誰にごはんだよと伝えますか」  \n「長男」  \n「長男にごはんだよと伝えました」  \n\nといった感じで、アレクサから家族の誰かに、ごはんができたことを LINE してもらうやつ。\n\n---\n\n## 使い方\n\nスキル開発の基礎的な知識については、[Alexaスキル開発トレーニング](https://developer.amazon.com/ja/alexa-skills-kit/training/building-a-skill) の第1回と第2回を一通り読んで試してもらえればわかるはず。\n\nここではスキル作成に関する説明は、上記の「Alexaスキル開発トレーニング」に譲り、スキルとひもづける Lambda Function（このリポジトリにあるコード）を動かすのに最低限必要な設定のみ説明する。\n\n### 環境変数の設定\n\nLambda Function の設定画面で、LINE bot アカウントのアクセストークンとシークレットを、環境変数 `CHANNEL_ACCESS_TOKEN` と `CHANNEL_SECRET` にセットしておく。\n\n### user.js の作成\n\nLINE bot でメッセージを送る相手の名前とユーザIDをマッピングしたテーブルを作成し、`user.js` という名前で保存。\n\n```javascript\nexports.id = {\n    '長男': 'Uad1bc...',\n    '次男': 'Ue0114...',\n    '長女': 'Ua84b8...',\n}\n\n```\n\nユーザIDは以下のような Lambda Function を API Gateway 配下で動かして、LINE bot の Webhook 経由で取得。\n\n```javascript\nexports.handler = (event, context, callback) =\u003e {\n    console.log(event.body);\n};\n```\n\n### zip で固めてアップロード\n\n`yarn install` してから `user.js` も含めて zip に固めてアップロードする。\n\n---\n\n## FAQ\n\n### なぜつくったのか\n\n家の中で「ごはんだよ」と叫んでも、長男や次男は部屋でイヤホンを装着して音楽聴いてたりするので、聞こえないことがよくある。そういう時は LINE でメッセージを送るようにしてるけど、いちいちスマホを取り出して LINE を開いて…、とやるのがめんどくさいので。\n\n### 誰に送るか指定しなくてもブロードキャストすればいいのでは？\n\n長男は塾や習い事がある日は早めに食べる、など、全員が同じタイミングで食事するわけではないので。\n\n\n### LINE するなら Clova WAVE とか Clova Friends 使えばいいじゃん\n\nアレクサスキルを開発してみたかったので。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizzy%2Falexa-gohan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizzy%2Falexa-gohan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizzy%2Falexa-gohan/lists"}