Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translator #18

Open
Moobiful opened this issue May 4, 2017 · 1 comment
Open

Add translator #18

Moobiful opened this issue May 4, 2017 · 1 comment

Comments

@Moobiful
Copy link

Moobiful commented May 4, 2017

~translate "[stringInput]" to [outputLanguage] Would take the input string through Google Translate's API, auto detect the language, and translate it to the target language. Hourai would then display the result and ping the calling user

User: ~translate "おはようございます" to ENG

Hourai: @user "おはようございます" translates to "Good morning"

~translate [integer] to [outputLanguage] Would take the inputted integer and parse the number of messages above it for any characters not in the specified target language, then take the foreign characters through the API and translate it into the target language. The translated output will be placed back into the original string, replacing the foreign characters originally given. If no integer is stated, the value defaults to 10

UserA: Hey guys, what's your favorite spell card?

UserB: I have a lot of them.
UserB: My favorite is probably 恋符「マスタースパーク」 though.

UserC: ~translate 5 to ENG

Hourai:
@userC

User B - Today at 16:38
My favorite is probably Love Sign "Master Spark" though.

https://cloud.google.com/translate/

@james5922
Copy link

Would this work?

https://www.microsoft.com/en-us/translator/faq.aspx
Apparently it's free up to 2 million characters a month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants