Giter Site home page Giter Site logo

toc-project-2017's Introduction

TOC Project 2017

Name : 謝明軒

ID : F74042183

Function : A bot which can show nba standing and famous player data

A telegram bot based on a finite state machine

Run Locally

Using ngrok as a proxy.

ngrok would be used in the following instruction

ngrok http 5000

Run the sever

python3 app.py

Finite State Machine

10 state

01.user (intial state)

02.gretting (say hello and some info)

03.rank (ask you which nba standing you want to see east or west)

04.player (ask which player you want to see)

05.trap (wrong input when you are in greeting state go back to greeting)

06.showEast (show you nba east standing and go back to greeting state)

07.showWest (show you nba west standing and go back to greeting state)

08.trap2 (wrong input when you are in rank state go back to rank state)

09.showPlayer (show you specific player data and go back greeting state)

10.trap3 (wrong input when you are in player go back to player state)

Usage

The initial state user no matter what you input you will enter greeting state and you have two option to choose show player or show nba standing and this state maching has memory machanism

  • user
    • Just follow the respond bot tell you

Author

Tim

toc-project-2017's People

Contributors

lee-w avatar swes1117 avatar

Watchers

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