GithubHelp home page GithubHelp logo

coscup-line-bot's Introduction

coscup-line-bot

How to deploy

Requirements

  • python 3.5

Install Dependency

pip install -r /path/to/requirements.txt
  • Install custom wit and linebot
pip uninstall wit linebot
pip install https://github.com/eternnoir/pywit/archive/master.zip https://github.com/tp6vup54/line-bot-sdk-python/archive/master.zip

Configuration

Coscup line bot will use these env. Please make sure you setup these value:

CHANNEL_MID = 'Your line bot's channel mid'
CHANNEL_ID = 'Your line bot's channel id'
CHANNEL_SECRET = 'Your line bot's channel secret'
CHANNEL_TOKEN = 'Your line bot's channel token if you got a business connection bot'
BOT_TYPE = 'TRIAL' or 'BUSINESS' depends on your bot type, usually be 'TRIAL'
WIT_ZHTW_TOKEN = 'Your wit.ai app token'
SHEET_CREDENTIAL_PATH = 'Your Google app credential path'
SHEET_NAME = 'Your Google spreadsheet name'
ADMIN_ID = 'Id to login backend'
ADMIN_PWD = 'Pwd to login backend'
DEBUG = '1' # If DEBUG env is '1' will set logger's level to debug else INFO.

Run

python server.py

coscup-line-bot's People

Contributors

eternnoir avatar hinet60613 avatar tp6vup54 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.