/disneyquiz

This is a line-bot about Disney character and the story in Python

Primary LanguagePython

DisneyQuiz LineBot

This app is LineBot for people who like Disney.
I wanted to make my girlfriend happy, so I made this app.

LineBot sample1

Description

You can kill time using this LineBot when you wait Disney Attraction and so on.

LineBot sample2

Requirements

・LINE developers (https://developers.line.me/en/)
・Python 3.6
・heroku (like rental server)
・Package Flask(web framework),gunicorn,line-bot-sdk,numpy
・ngrok (we can access into running server in localhost from outside of LAN)

Installation

need to install packages.

brew install ngrok
pip install gunicorn
pip install line_bot_sdk
pip install Flask

if you cannot install ngrok, you should run following command ↓

brew cask install ngrok

Explanation important file

・main.py

line_bot_api = LineBotApi('**********')     #Channel access token
handler = WebhookHandler('**********')     #Channel secret

・Procfile

web: gunicorn main:app --log-file=-

・requirement.txt

Flask==0.12.2
gunicorn==19.7.1
line-bot-sdk==1.5.0
numpy==1.13.3