GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dfd19/line_echobot: A django implementation of Line Bot

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
echobot
echobot
 
 
line_echobot
line_echobot
 
 
.gitignore
.gitignore
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
manage.py
manage.py
 
 
requirements.txt
requirements.txt
 
 
runtime.txt
runtime.txt
 
 

Repository files navigation

django linebot example

A django implementation of new Line Message API using line-bot-sdk-python

There is also sanic and flask implementation of this project on other branch.

Setup

Secret Data

You MUST setup the following variables.

  • SECRET_KEY
    • django secret key. You can generate using Django secret key generator
  • LINE_CHANNEL_SECRET
  • LINE_CHANNEL_ACCESS_TOKEN

There are two way to set these variables

  1. Set these variables in line_echobot/line_echobot/settings_secret.py(Exactly the same name)
  2. Add these variables to environment variables. (settings_secret.py is loaded first)

HTTPS Server

You'll need a https server.
Heroku can serve this for you.
All the needed settings for heroku are set in this repo.

Otherwise, you can also build your own https server.

Set Webhook URL

Set webhook url on your LINE Developers page to https://"your domain name"/echobot/callback/

Tutorial

The following articles describe how to construct this bot in detail.

  • [Bot] Introduction to Chatbot
  • [Bot] Apply Line Messaging API
  • [Bot] Line Echo Bot on Django
  • [Bot] Deploy LineBot on Heroku
  • [Bot] More About Line Messaging API - Template Messages
  • [Bot] More than Just Echo Bot

There is also a slide version.

Authors

Lee-W

License

MIT

About

A django implementation of Line Bot

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.