{"id":28742791,"url":"https://github.com/bamjr/linebotcustomnotify","last_synced_at":"2026-02-13T01:37:10.802Z","repository":{"id":297931271,"uuid":"995478413","full_name":"Bamjr/LineBotCustomNotify","owner":"Bamjr","description":"This project is a simple LINE Messaging API bot using Google Apps Script (GAS) to send a monthly group reminder with a QR payment image","archived":false,"fork":false,"pushed_at":"2025-06-08T11:42:03.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T07:27:21.615Z","etag":null,"topics":["line","linemessagingapi","linenotify-api"],"latest_commit_sha":null,"homepage":"","language":null,"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/Bamjr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null}},"created_at":"2025-06-03T14:40:15.000Z","updated_at":"2025-06-08T11:42:08.000Z","dependencies_parsed_at":"2025-06-08T12:41:48.008Z","dependency_job_id":null,"html_url":"https://github.com/Bamjr/LineBotCustomNotify","commit_stats":null,"previous_names":["bamjr/linebotcustomnotify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bamjr/LineBotCustomNotify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bamjr%2FLineBotCustomNotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bamjr%2FLineBotCustomNotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bamjr%2FLineBotCustomNotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bamjr%2FLineBotCustomNotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bamjr","download_url":"https://codeload.github.com/Bamjr/LineBotCustomNotify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bamjr%2FLineBotCustomNotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29392001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:53:09.511Z","status":"ssl_error","status_checked_at":"2026-02-13T00:53:09.126Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["line","linemessagingapi","linenotify-api"],"created_at":"2025-06-16T09:18:08.774Z","updated_at":"2026-02-13T01:37:10.785Z","avatar_url":"https://github.com/Bamjr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📢 LINE Notify Bot - Monthly Spotify Reminder\n\nThis project is a simple LINE Messaging API bot using Google Apps Script (GAS) to send a **monthly group reminder** with a QR payment image and a mention to all group members.\n\n\u003e 📅 Sends a message on the **1st of every month**.\n\n## 💡 Features\n\n- Sends custom text message \n- Includes an image (e.g., QR code)\n- Automatically runs every month using Google Apps Script Trigger\n\n## 📦 Requirements\n\n- LINE Messaging API (with your **channel access token** and **group ID**)\n- [Google Apps Script](https://script.google.com/)\n- Internet access\n\n## 🛠️ Setup Instructions\n\n### 1. Create a LINE Bot\n\n- Go to [LINE Developers Console](https://developers.line.biz/)\n- Create a new provider and messaging API channel\n- Enable `Messaging API`\n- Get your **Channel Access Token**\n- Add your bot to a LINE group and **send at least one message** to retrieve the `groupId`\n\n### 2. Google Apps Script Setup\n\n1. Go to [Google Apps Script](https://script.google.com/)\n2. Create a new project\n3. Paste this code in `Code.gs`:\n\n```javascript\nfunction sendLineNotification() {\n  const accessToken = 'YOUR_ACCESS_TOKEN'; // Replace this\n  const groupId = 'YOUR_GROUP_ID'; // Replace this\n\n  const messages = [\n    {\n      type: 'text',\n      text: '@All จ่ายเงินค่า Spotify ด้วยนะะ 36.5 บาท truemoney-xxxxxxxx',\n      mention: {\n        mentionees: [{\n          index: 0,\n          length: 4,\n          type: 'all'\n        }]\n      }\n    },\n    {\n      type: 'image',\n      originalContentUrl: 'https://YOUR-IMAGE-ADDRESSES.png',\n      previewImageUrl: 'https://YOUR-IMAGE-ADDRESSES.png'\n    }\n  ];\n\n  const payload = {\n    to: groupId,\n    messages: messages\n  };\n\n  const options = {\n    method: 'post',\n    contentType: 'application/json',\n    headers: {\n      Authorization: 'Bearer ' + accessToken\n    },\n    payload: JSON.stringify(payload)\n  };\n\n  UrlFetchApp.fetch('https://api.line.me/v2/bot/message/push', options);\n}\n```\n\n### 3. Add Scheduler (Trigger)\n\n1. Click the **clock icon** ⏰ in Apps Script to open \"Triggers\"\n2. Click **+ Add Trigger**\n3. Choose the following:\n\n| Option              | Value                    |\n|---------------------|--------------------------|\n| Function to run     | `sendLineNotification`        |\n| Deployment          | Head                     |\n| Event source        | Time-driven              |\n| Type of time-based trigger | Month timer         |\n| Day of month        | 1st                     |\n| Time of day         | Your choice (e.g., 9AM)  |\n\n\n## 🖼️ Demo Output\n\n\u003e 📷 QR Payment image and message:\n```\n@All จ่ายเงินค่า Spotify ด้วยนะะ 36.5 บาท truemoney-xxxxxxxx\n```\n\n## 🖼️ Preview\n![467830](https://github.com/user-attachments/assets/84bcc29e-c700-4968-a775-2b3f7b4193a9)\n\n## 🔐 Security Notes\n\n- Do not expose your access token in public repositories. Use [Script Properties](https://developers.google.com/apps-script/guides/properties) for secrets.\n- This project is for educational and personal use only.\n\n## 📄 License\n\n[MIT License](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamjr%2Flinebotcustomnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbamjr%2Flinebotcustomnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamjr%2Flinebotcustomnotify/lists"}