Skip to content

xaadu/fb-translator-bot-xs

Repository files navigation

Translator Bot for Facebook Messenger

A Simple Messenger Bot that can translate from many languages to many languages. It works based on Google Translator. Receives data by Chatfuel with get method.

Try Here(For Direct Use):

Help:

To know the usage, send '/help' to the bot.

Bugs:

  • Chainese Language
  • Report if you find any

Modules:

  • flask
  • googletrans
  • requests
  • os
  • sys
  • json
  • pprint

Usage(For creating your very own bot):

  • Install packages using this command:
pip install flask googletrans requests
  • Create a facebook page.
  • Go to Chatfuel and connect facebook page.
  • Create card JSON API in both "Welcome" and "Default Message" section.
  • Download the repository from github.
  • Modify code as you want.
  • Upload in heroku (Contact if you face any problem). NB: PythonAnywhere Doesn't support 'googletrans' module. Use other instead if you use PA.
  • Remember your web app link.
  • Put the link on JSON API URL section and select GET method.
  • Your bot is 100% ready to use.

NB: You can use facebook app in developers.facebook.com to use. But you have to change app.py to make compitable

Feedback:

Any feedback is much appreciated.

Contact:

About

Translator Bot for Facebook Messenger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages