Skip to content

taiwangoldcard/taiwan-bot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

πŸ‡ΉπŸ‡Ό πŸ€–

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •