Code Monkey home page Code Monkey logo

linebot's Introduction

Install

$ pip install line-bot-sdk
$ pip install flask
$ cd ~/duckietown/catkin_ws/src
$ git clone https://github.com/pete710592/linebot.git
$ git clone https://github.com/pete710592/hbc_msgs.git

Current status

mail_trigger.py目前是用來「觸發」Linebot用的
他會產生選項讓使用者選擇,當使用者決定好要哪個選項時,會觸發到app.py內的內容

1. Line17

title='Duckiebot #01'

我目前是假定一個機器人做問問題的動作

2. Line21,26

PostbackTemplateAction(
	label='drop it for me',  # displayed on the screen
	text='action #101',  # after push the button, displayed in the dialog
	data='action=buy&itemid=1'
),
MessageTemplateAction(
	label='get it by myself',  # displayed on the screen
	text='action #102'  # after push the button, displayed in the dialog
)

PostbackTemplateAction,MessageTemplateAction 這兩個功能不知道差在哪,還要查

3. Line18

text='You have 2 mails. \nWhat can I do for you?'

目前暫時先假定有2封信,到時候會有幾封信是需要接收的還要再改(subscribe)

Reference

https://xiaosean.github.io/chatbot/2018/04/10/LineChatbot/

linebot's People

Contributors

pete710592 avatar

Watchers

James Cloos 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.