{"id":25181781,"url":"https://github.com/sammyboooom/linebot","last_synced_at":"2025-04-04T06:21:57.616Z","repository":{"id":195168318,"uuid":"692395542","full_name":"SAMMYBOOOOM/LineBot","owner":"SAMMYBOOOOM","description":"This line bot is created as a student's personal project, and is works as teacher/student interaction and score/course management autoreply bot","archived":false,"fork":false,"pushed_at":"2023-09-16T11:23:12.000Z","size":99,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T17:33:40.307Z","etag":null,"topics":["chatbot","cui","line","linebot","linemessagingapi","sql"],"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/SAMMYBOOOOM.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":"2023-09-16T10:54:27.000Z","updated_at":"2024-05-04T17:02:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"411c6955-65c4-4df8-acd2-665c480b3da8","html_url":"https://github.com/SAMMYBOOOOM/LineBot","commit_stats":null,"previous_names":["sammyboooom/linebot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAMMYBOOOOM%2FLineBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAMMYBOOOOM%2FLineBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAMMYBOOOOM%2FLineBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAMMYBOOOOM%2FLineBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SAMMYBOOOOM","download_url":"https://codeload.github.com/SAMMYBOOOOM/LineBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247129844,"owners_count":20888462,"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","cui","line","linebot","linemessagingapi","sql"],"created_at":"2025-02-09T17:27:57.306Z","updated_at":"2025-04-04T06:21:57.587Z","avatar_url":"https://github.com/SAMMYBOOOOM.png","language":"JavaScript","readme":"# LineBot - School Management System with LINE Messaging Integration\nThe LineBot is a student's personal project that functions as a teacher-student interaction and score/course management autoreply bot. It allows for seamless communication and management within a school environment using the LINE messaging app.\n\n### Getting Started\nTo set up and run the LineBot on your local environment, follow these instructions:\n\n### Prerequisites\nNode.js and npm: Ensure you have Node.js and npm (Node Package Manager) installed on your system. You can download and install them from the official website: Node.js.\n\nMySQL Database: You will need MySQL as your database server. You can install it locally or use a remote MySQL database.\n\n### Installation\nInitialize Node.js Project: In your project directory, initialize a Node.js project and create a package.json file by running the following command:\n\n```shell\nnpm init -y\n```\nInstall Dependencies: Install the necessary npm packages by running:\n\n```shell\nnpm install dotenv @line/bot-sdk express mysql2\n```\nConfigure Environment Variables: Create a .env file in your project directory and provide the required credentials. Replace the placeholders with your actual values. Example:\n\n```dotenv\n# Line official cridential\nexport CHANNEL_SECRET=\nexport CHANNEL_ACCESS_TOKEN=\n\n# Port on the local\nexport PORT=3000\n\n# To connect the local mysql db\nDB_HOST=\nDB_USER=\nDB_PASSWORD=\nDB_NAME=bot\n\n# NGROK to expose localhost for img can be preview in the img funciton\nNGROK_LINK=\n\n# This password is use to enter local admin web page\nPASSWORD=\n```\nDatabase Setup: Create a MySQL database named \"bot\" and import the required schema by running the code provided in the .sql file.\n\nExpose Your Local Server: To test the bot with LINE, you can use Ngrok to expose your local server to the internet.\n\nUsage\nWith the LineBot set up, you have your own school management system that interacts via LINE. While the local web UI may be incomplete, it serves as a foundation for building out additional features and functionality.\n\n### Contributing\nContributions are welcome! Feel free to open issues or pull requests to improve this project.\n\n### License\nCurrently not sure what it does.\n\n### Acknowledgments\nSpecial thanks to the [LINE messaging platform](https://developers.line.biz/en/services/messaging-api/ \"Line message api documentation\") for providing tools and APIs for bot development.\n\n### Author\nSam\nContact\nIf you have any questions or feedback, feel free to reach out to b11013112@uch.edu.tw.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammyboooom%2Flinebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammyboooom%2Flinebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammyboooom%2Flinebot/lists"}