Plong-Wasin / line-drive-saver

LineDrive Saver is a Line bot that allows you to save files to Google Drive.
https://github.com/Plong-Wasin/line-drive-saver
0 stars 0 forks source link
file-management file-sharing google-account google-drive google-script group-chat line line-bot line-integration linebot spreadsheet webhook

LineDrive Saver

About

LineDrive Saver is a Line bot that allows you to save files to Google Drive.

Requirements

  1. Line Developer Account: Line Developer Account is required to create and manage your Line bot. You can sign up for a Line Developer Account at Line Developers website. Once you have an account, you'll be able to create a Line channel for your bot and obtain the Line channel access token.
  2. Google Account: A Google Account is required to access Google Drive and save files. If you don't have a Google Account, you can create one at Google Account Creation. LineDrive Saver utilizes the Google Drive API to interact with Google Drive, and a Google Account provides the necessary authentication and access permissions to perform file operations.

Features

How to Use

  1. Create a folder in your Google Drive.
  2. Create a spreadsheet within the folder.
  3. Open the spreadsheet, go to Extensions, and select Apps Script.
  4. Copy and paste the code from the release into the Code.gs file.
  5. Run the publishConfig function.
  6. Deploy > New Deployment > Web app.
  7. Choose "Anyone" for the "Who has access" option.
  8. Deploy.
  9. Copy the URL and paste it into the webhook URL of your Line bot.
  10. Configure the Line channel access token.
  11. Add the Line bot as a friend.
  12. Optionally, invite the Line bot to the group.
  13. Done!

Configuration

You can configure the following settings in the code: