This is a LINE Bot project that aiming to reach users of OfferLand. It's an alternative to develop mobile app for extra notification features.
Clone the project
git clone https://github.com/offerland-cc/line-oa
Go to the project directory
cd line-oa
Install dependencies
yarn install
Start the server, the server will run on localhost:8080
yarn start
Language: Typescript
Framework: Node.js 18
Runtime: Google Cloud Functions v2
Set {your_domain_of_the_function}/line
as the Webhook URL in your LINE developer project dashboard.
For more details, follow LINE Official Messaging API Doc to call the API.
Parameter | Type | Description |
---|---|---|
results |
Array |
Required. Lists of new uploaded results. |
To run this project, you will need to add the following environment variables to your .env file
LINE_CHANNEL_ACCESS_TOKEN=
LINE_CHANNEL_SECRET=
SUPABASE_SERVICE_KEY=
SUPABASE_URL=
MAIN_COLOR=
WEBSITE_URL=
MAIN_COLOR=
JWT_SECRET= // for account binding token