/daily-nba

:basketball::fire::basketball: LINE Bot that implemented FSM model with 9 features.

Primary LanguagePython

🏀 The NBA LINE Bot with 9 features!

Watch NBA games, check the schedule, lookup the stats, search for players by using Daily-NBA. Button carousel templates are used for every states. Instead of typing bunch of word to the LINE bot, you can just simply press buttons on the carousel template.

This LINE bot is mostly built by LINE messaging API, and a little Flask as web application framework to host it on Heroku.

Finite State Machine model is implemeted in Daily-NBA. Each feature is represented by a state, and the button that user pressed on the carousel template will trigger the transitions between states. The FSM graph is shown below.

FSM

Finite state machine is a model in Theory of Computation. This model is implemented in Daily-NBA. Each feature is represented by a state, and the button that user pressed on the carousel template will trigger the transitions between states. The FSM graph is drawn by GraphMachine in transitions.extensions.

Features

Watch Games

Checking out all the scores of the games on that day. (Today / Yesterday / Manually input date)

Search Player

Searching for a specific player. (Manually input player name)

Search Team

Searching for a specific team. (Manually input team name)

Standings

Showing the team standing from both Eastern and Western conference.

Game Schedule

Showing the game schedule tomorrow.

Stat Leader

Showing the stat leaders. (Most Points / Assist / Rebound / 3PM / Steal / Block)

Game Result

Checking out the box score of a specific game. (Manually input date and team)

Special Features

NBA Meme

My favoritie feature! Brininging the best and newest NBA meme to you by pressing one button.

NBA News

Bringing the hottest NBA news to you by pressing one button.

Play with it!

Reference

All data comes from basketball-reference.com.
NBA memes come from twitter@NBAMemes.
NBA news come from realgm.

License

MIT © chonyy

Demo