Skip to content

taiwangoldcard/taiwan-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taiwan Bot

A chatbot to answer all your questions about Taiwan Gold Card and many more!

Add me on Facebook Messenger

Talk to the bot with Facebook Messenger

Add me on Line

Taiwan Bot line account

Develop

  1. pip install -r requirements.txt
  2. uvicorn app:app --reload

The endpoint where you can query the bot will appear, by default it will be http://localhost:8000

If you get the message when starting it:

[...]
tensorflow.python.framework.errors_impl.NotFoundError: /var/[...]/tfhub_modules/539544f0a997d91c327c23285ea00c37588d92cc/tfhub_module.pb; No such file or directory

Remove that folder with sudo rm -rf /var/[...]/tfhub_modules/

Test the bot locally

  • Install the bot emulator
  • The endpoint is by default http://localhost:8000/api/messages
  • No credential are needed

Deployment

Everytime a PR is merged, the github workflow should automatically deploy the new server code. The chatbot account above is connected to the server so your new changes should be instantly available.