<commit_before># Slack
Sistema para integracao com o sistema de mensageria Slack.

[![Build Status](https://api.travis-ci.org/wmixvideo/slack.png)](http://travis-ci.org/#!/wmixvideo/slack)
[![Coverage Status](https://coveralls.io/repos/github/wmixvideo/slack/badge.svg?branch=master)](https://coveralls.io/github/wmixvideo/slack?branch=master)

## Exemplos de uso

### Envio de mensagem simples para o canal padrao
```
try {
    final Slack slack = new Slack("https://<KEY>");//alterar para o seu webhook
    final SlackPayload slackPayload = new SlackPayload().text("Oi mundo");
    slack.send(slackPayload);
} catch (Exception e) {
    e.printStackTrace();
}
```

### Envio de mensagem simples para um devido canal
```
<code>
try {
    final Slack slack = new Slack("https://<KEY>");//alterar para o seu webhook
    final SlackPayload slackPayload = new SlackPayload().channel("teste").text("Oi mundo");
    slack.send(slackPayload);
} catch (Exception e) {
    e.printStackTrace();
}
</code>
```<commit_msg>Ajustado codigo de exemplo do readme.<commit_after># Slack
Sistema para integracao com o sistema de mensageria Slack.

[![Build Status](https://api.travis-ci.org/wmixvideo/slack.png)](http://travis-ci.org/#!/wmixvideo/slack)
[![Coverage Status](https://coveralls.io/repos/github/wmixvideo/slack/badge.svg?branch=master)](https://coveralls.io/github/wmixvideo/slack?branch=master)

## Exemplos de uso

### Envio de mensagem simples para o canal padrao
```
try {
    //alterar para o seu webhook
    final Slack slack = new Slack("https://hooks.slack.com/services/XXX/XXX/XXXXXX");
    final SlackPayload slackPayload = new SlackPayload().text("Oi mundo");
    slack.send(slackPayload);
} catch (Exception e) {
    e.printStackTrace();
}
```

### Envio de mensagem simples para um devido canal
```
try {
    //alterar para o seu webhook
    final Slack slack = new Slack("https://<KEY>");
    final SlackPayload slackPayload = new SlackPayload().channel("teste").text("Oi mundo");
    slack.send(slackPayload);
} catch (Exception e) {
    e.printStackTrace();
}
```
{'fraction_non_alphanumeric': 0.15918958031837915, 'fraction_numerical': 0.0, 'mean_word_length': 4.4867724867724865, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 10, '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': '693284', 'n_tokens_mistral': 721, 'n_tokens_neox': 699, 'n_words': 161}