https://hackmd.io/p/S1GCfktbE#/
- A chat bot on FB messenger.
- It's a Tic-tac-toe game.
- You are "o", the bot is "x".
- After send a text, it will return two image.
text:
A1
,A2
,A3
,B1
,B2
,B3
,C1
,C2
,C3
- One is your choice, the other is the bot's choice.
- You can send
init
to restart at any time. - Or send anything to see tutorial.
- transitions
- to implement FSM
- pillow
- to make image
- pyimgur
- to upload image to imgur.com
- protobuf
- record states of users
- to handle multiple users
- psycopg2
- postgreSQL for python
- to record url in imgur.com to avoid upload too many times
- pygraphviz
- to draw FSM
- processing
- only for draw base image
- heroku
- docker
- 圈圈叉叉
- It's public.
- Input: A1
- go to A1
- Reply:
- Input: B1
- go to A1B1
- Reply:
- Input: A3
- go to A1B1A3
- Reply:
- Input: C2
- go to A1B1A3C2
- Reply:
- go to user
NOT complete FSM
The complete image is too big to push to github( 176 MB )
So split to 9 images
Removed the back flow
The fsm which has back flow(to user) will seem so mussy