This is a simple Discord Translator Bot which used Cloud Translation API from Google Cloud to return translation, detect language of text and others
-
!translate to: "LANGCODE" "TEXT"
- Translates the TEXT to the given LANGCODE and prints it to the channel
- Example : !translate to: fr "Hello World
- Translation: Bonjour le monde
- Example : !translate to: French "Hello World
- A language to translate to was not provided!
-
!langCodes for: "LANGUAGE"
- Returns the LANGCODE that is used for the given LANGUAGE
- Example : !langCodes for: English
- The language code for English is en
- Example : !langCodes English
- The 'for:' command was not used!
-
!detectLang "TEXT"
- Returns the LANGUAGE for the given TEXT
- Example : !detectLang "Halló heimur"
- Icelandic with confidence : 100
- Example : !detectlang
- Missing text to be detected!
-
!help cmd: "COMMAND"
- Returns a description for how to use the COMMAND if the COMMAND is all prints all supported commands
- Example : !help cmd: !translate
- Returns the description for how to use !translate command