Skip to content

natpatchara/smsu-linebot-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMSU line OA webhook template

SMSU line OA webhook source code by natpatchra pongjirapat

For siriraj student union year 2020-2021

Table of content

project structure

    .
    ├── api                     # Directory for main webhook api
    ├── img                     # Directory for image material
    ├── json                    # Directory for json line flex template
    ├── richmenu                # Directory for richmenu template and shell script
    ├── template                # Directory for line bot demo
    ├── node_modules            # Directory for nodejs module
    ├── secret                  # Directory for hidden secret (eg. firebase config, line channel etc.)
    ├── package                 # Package config for nodejs
    ├── package-lock            # Package config for nodejs
    ├── .env                    # Hidden env config for vercel server
    ├── License                 # License file
    ├── server.js               # Main javascript file for web server
    └── README.md

technologies

- javascript
- nodejs
- express
- request
- node-fetch
- body-parser
- line-messaging-api

setup

In progress

usage

For usage as a line messaging webhook as a serverless api with vercel

status

As of writing this markdown file, this project is at a stage of real world usage as organisation main line OA. However, there are no benchmarking and intense testing done due to limit of funding.

In summary our current features and to do include:

  • features

    • Working as a main webhook when use in accordance with line OA
    • have a proxy function for turning special message type to plain text for dialogflow use
  • todo

    • Improve documentation
    • Intensive testing
    • Optimization

reference

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.3%
  • Shell 27.7%