<commit_before># slack-traductor
Slack bot to translate chat messages of any language into English

![example](example.png)

## Why?

Because we are an international team and sometimes I don't understand what they all are talking about.

## Usage

Traductor is using Microsoft Translator API, because it's free 😅
Get Translator API account: https://datamarket.azure.com/dataset/bing/microsofttranslator
Create `.env` file and put the following env vars inside:

```
BOT_NAME=bot_name
BOT_TOKEN=<PASSWORD>token
CLIENT_ID=microsofttranslator_client_id
CLIENT_SECRET=microsofttranslator_client_secret
```

```
$ npm i
$ npm start
```

## Commands

`@traductor: stop` — suspend the bot for 10 minutes in current channel/group<commit_msg>🔧 new lines<commit_after># slack-traductor
Slack bot to translate chat messages of any language into English

![example](example.png)

## Why?

Because we are an international team and sometimes I don't understand what they all are talking about.

## Usage

Traductor is using Microsoft Translator API, because it's free 😅

Get Translator API account: https://datamarket.azure.com/dataset/bing/microsofttranslator

Create `.env` file and put the following env vars inside:

```
BOT_NAME=bot_name
BOT_TOKEN=bot_token
CLIENT_ID=microsofttranslator_client_id
CLIENT_SECRET=microsofttranslator_client_secret
```

```
$ npm i
$ npm start
```

## Commands

`@traductor: stop` — suspend the bot for 10 minutes in current channel/group
{'fraction_non_alphanumeric': 0.08424657534246575, 'fraction_numerical': 0.0027397260273972603, 'mean_word_length': 5.610859728506787, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2511519', 'n_tokens_mistral': 470, 'n_tokens_neox': 446, 'n_words': 159}