Skip to content

Jayyyu1w/Calendar-Linebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calendar-Linebot

👁️Overview

This is Linebot to extract event from message and add to google calendar, using flask to build local server, ngrok service to build line webhook URL and llama-cpp-python to run LLM locally.

It is welcome to open issue or pull requests to make this project better.🎉

📖Installation

  • To run this project locally, follow this steps:
  1. Clone the repository of this project by excuting the following command
git clone https://github.com/Jayyyu1w/Calendar-Linebot.git
or
git clone git@github.com:Jayyyu1w/Calendar-Linebot.git
  1. Install the required packages by running the folloeing command:
pip install -r requirements.txt
  1. Install ngrok

  2. Login Line Developers

🧰Usage

  • Add lineapi.txt and put Channel access token in first line, Channel secret in second line.

  • Add model and paste model path to llm_extract.py

  • Run server.py

python server.py
  • Run ngrok service
ngrok http <your local server URL>
  • Put ngrok URL to Line Bot Webhook URL and add /callback at back
<ngrok URL>/callback
  • All done🤗

About

Linebot to extract event from message and add to google calendar

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages