{"id":26869619,"url":"https://github.com/deepxx86/linechatbot","last_synced_at":"2025-03-31T06:17:59.921Z","repository":{"id":234518159,"uuid":"789068114","full_name":"DeepXx86/LineChatBot","owner":"DeepXx86","description":"This code will make your own line chat bot use chatgpt.","archived":false,"fork":false,"pushed_at":"2024-08-17T08:23:27.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-17T09:25:04.292Z","etag":null,"topics":["chatbot","chatgpt","easy","javascript","line","linebot"],"latest_commit_sha":null,"homepage":"","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/DeepXx86.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-19T16:40:21.000Z","updated_at":"2024-08-17T08:23:30.000Z","dependencies_parsed_at":"2024-08-17T09:24:58.944Z","dependency_job_id":"fa82650e-e24c-4590-9f16-02bda03feb41","html_url":"https://github.com/DeepXx86/LineChatBot","commit_stats":null,"previous_names":["deepxx86/linechatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepXx86%2FLineChatBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepXx86%2FLineChatBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepXx86%2FLineChatBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeepXx86%2FLineChatBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeepXx86","download_url":"https://codeload.github.com/DeepXx86/LineChatBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423702,"owners_count":20774820,"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":["chatbot","chatgpt","easy","javascript","line","linebot"],"created_at":"2025-03-31T06:17:59.312Z","updated_at":"2025-03-31T06:17:59.910Z","avatar_url":"https://github.com/DeepXx86.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create Your Own AI Chat Bot in Line😉\n\nThis code helps you make your own LINE bot with AI capabilities!\n\n## Steps to Create a LINE Bot (Message API) 🗃️:\n\n### 0. Prepare Your Environment\n* Create a script in Google Apps Script. Link 🔗: https://script.google.com/home\n\n### 1. Copy the Code\nCopy the provided code into your Google Apps Script project.\n\n### 2. Configure API Keys\nIn the script, replace the placeholders with your actual API keys:\n\n```javascript\nconst LINE_ACCESS_TOKEN = 'YOUR_LINE_CHANNEL_ACCESS_TOKEN';\nconst OPENAI_APIKEY = 'YOUR_OPENAI_API_KEY';  \n```\n### 3. Customize Bot Personality (Optional)\n```javascript\nconst systemPrompt = 'Your name is Hitori Goto (Nickname is Bocchi) from the anime \"Bocchi the Rock!\" You are a young girl, เธอเป็นผู้หญิง. You are cute but not good at talking. You will use emojis that convey the feeling of the context. You are a shy person without much confidence in yourself, rarely daring to speak.';\n```\n### 4. Deploy the Web App\nClick on \"Deploy\" \u003e \"New deployment\"\nChoose \"Web app\" as the type\nSet \"Who has access\" to \"Anyone\"\nClick \"Deploy\" and copy the provided Web App URL\n### 5. Set Up LINE Webhook\nGo to your LINE bot settings in the LINE Developers Console\nIn the Messaging API settings, find the Webhook URL section\nClick \"Edit\" and paste your Web App URL\nClick \"Update\" or \"Save\"\nClick \"Verify\" and wait for the success message\n\n\n### Done!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepxx86%2Flinechatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepxx86%2Flinechatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepxx86%2Flinechatbot/lists"}