GithubHelp home page GithubHelp logo

waiterian-line-bot's Introduction

waiterian-line-bot

設計理念

每當到了晚餐時間,飢腸轆轆的你是否不知道要吃甚麼呢? 這個困難的問題就交給waiterian來當你想吧!

waiterian這個linebot提供兩個主要的服務,分別是

  • 搜索附近的餐廳 透過篩選器,選擇位置搜索半徑價錢標準關鍵字,waiterian就會幫你搜尋符合條件並且正在營業的店家,並提供google的星數、地址、圖片等訊息,方便你選擇想要吃的餐廳!

  • 搜索各類的食譜 餐餐外食也會有吃膩或是有健康上的負擔,這時候親自下廚往往是最好的選擇,這時候waiterian可以提供各類的食譜,像是點心家常料理異國料理冰品與飲品等,你只要選擇你喜歡的食譜然後跟著食譜一步一步動手做就可以了喔!

希望透過這些服務可以幫助每個人解決吃飯的困擾

基本資訊

加入waiterian-line-bot的連結 -> 點我

使用說明

主選單

輸入waiterian可以叫出主選單,或是直接使用圖文選單的主選單也可以

搜尋餐廳

點選RESTAURANR的圖標,state轉換為search_restaurant,並跳出搜尋餐廳的篩選器

透過點擊篩選器的按鈕可以修改設定的值,下列幾點需要注意

  • 預設的設定值會是上次搜尋的設定值
  • 每當開始設定,需要完成數值的設定後才能繼續下個設定
    • e.g. 當選位置訊息時,state轉換為get_location,使用者需要輸入位置使state轉換為search_restaurant,才能既須接下來的設定
  • 設定時,需要以>> 作為前綴並輸入正確的值機器人才能順利設定
    • e.g. 在設定關鍵字時,可以使用>> 日式來搜尋特定種類的餐廳
  • 搜尋結束時,需要使用QUIT離開當前狀態使state轉換為idle

搜尋結果

搜尋食譜

點選RECIPE的圖標,state轉換為search_recipe,並跳出各種不同種類的按鈕

當按下某個種類的按鈕時,會顯示該種類的細項,此時選擇你想要的細項點擊後,就會產生該細項的食譜。

有幾點事情需要注意

  • 顯示細項時會進入該種類的state,因此當搜尋結束時需要使用QUIT回到正確的state
    • e.g 點選點心與甜點種類時,state轉換為dessert_recipe,並顯示pudding、chocolate、cookie、bread等細項,當選擇完後需要離開使state轉換為search_recipe就能繼續選擇其他種類的食譜繼續搜尋。
  • 搜尋特定菜譜時,需要以>> 作為前綴並輸入正確的值機器人才能順利搜尋

幫助

idle狀態的時候,可以輸入help查看幫助。此外,在任何狀態的時候,可以使用information來查看當前所在的state。

技術

  • Render

  • Postgresql database

  • Google Map API

  • Web Crawling using bs4

  • Custom Flex Message

FSM 圖

-- 👤 Dannyyang0329 🕜 Sun, Dec 25, 2022 12:56 AM

waiterian-line-bot's People

Contributors

dannyyang0329 avatar

Watchers

 avatar  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.