Hubot: Garble
Hubot script that garbles your text
Usage
In a chatroom, type:
hubot garble [1-9] <text>
Hubot will return garbled text by translating the original text N number of times, where N is an optional argument between 1 and 9 (default is 5).
Configuration
ENV variable | Description |
---|---|
YANDEX_TRANSLATE_API_KEY |
string; a Yandex API key (required) |
HUBOT_GARBLE_LOCAL_LANGUAGE |
string; language code for chatroom language (optional; default is 'en') |
HUBOT_GARBLE_TRANSLATION_PATH_LOG |
boolean; display the translation path that text followed during garbling process (optional; default is true) |
Installation
Add the package hubot-garble
as a dependency in your Hubot package.json
file.
"dependencies": "hubot-garble": "^1.0.0"
Run the following command to make sure the module is installed.
npm install hubot-garble
To enable the script, add the hubot-garble
entry to the external-scripts.json
file (you may need to create this file).
"hubot-garble"