joaoricardo000 / whatsapp-bot-seed

A small python framework to create a whatsapp bot, with regex-callback message routing.
727 stars 245 forks source link

Add Translate option (Text To Speech) #57

Closed K4CZP3R closed 8 years ago

K4CZP3R commented 8 years ago

Thanks for great Translator! https://github.com/mouuff/Google-Translate-API Adds function to translate entered text and speak it

usage: /t "text" lang (2 letters)

example: /t "hoi, hoe gaat het" en

joaoricardo000 commented 8 years ago

Hi, thanks for the PR. Really cool functionality!
But before merge, I would like you to refactor a little bit, just to be more like the rest of the project.

First, there is already a "/t", "/tts (text to speech).
And second, there is no need to create another class just to add a new Google functionality. There is already a "views/google.py". Just add there your method.

Thanks!