<commit_before>mediawiki-slack
===============

Mediawiki Integration for Slack.
* http://www.mediawiki.org
* http://www.slack.com

## Features

* Notifies a Slack channel whenever any page on the wiki is edited.

## Requirements

* MediaWiki >= 1.21
* PHP Curl extension.

## Set Up

1. Log in to your Slack Team and click "Integrations".
2. Select "Incoming WebHooks" as the type.
3. Choose the default channel you want to use and click "Add Integration".
4. Copy the Webhook URL shown on the left of the page. We'll need this in step 6.
5. Copy the contents of the Slack folder in this repository to your wiki's extensions folder.
6. Add the following lines to LocalSettings.php
   
   ```php
   # Enable the Slack extension
   require_once "$IP/extensions/Slack/Slack.php";

   # Slack extension configuration options
   $wgSlackWebhookURL = "THE INTEGRATION URL FROM STEP 3";
   $wgSlackUserName = "THE USERNAME YOU WANT YOUR BOT TO HAVE IN SLACK";
   $wgSlackChannel = "#theChannelForBotMessagesToAppearIn";<commit_msg>Fix minor error in installation instructions.<commit_after>mediawiki-slack
===============

Mediawiki Integration for Slack.
* http://www.mediawiki.org
* http://www.slack.com

## Features

* Notifies a Slack channel whenever any page on the wiki is edited.

## Requirements

* MediaWiki >= 1.21
* PHP Curl extension.

## Set Up

1. Log in to your Slack Team and click "Integrations".
2. Select "Incoming WebHooks" as the type.
3. Choose the default channel you want to use and click "Add Integration".
4. Copy the Webhook URL shown on the left of the page. We'll need this in step 6.
5. Copy the contents of the Slack folder in this repository to your wiki's extensions folder.
6. Add the following lines to LocalSettings.php
   
   ```php
   # Enable the Slack extension
   require_once "$IP/extensions/Slack/Slack.php";

   # Slack extension configuration options
   $wgSlackWebhookURL = "THE INTEGRATION URL FROM STEP 4";
   $wgSlackUserName = "THE USERNAME YOU WANT YOUR BOT TO HAVE IN SLACK";
   $wgSlackChannel = "#theChannelForBotMessagesToAppearIn";
{'fraction_non_alphanumeric': 0.09269932756964457, 'fraction_numerical': 0.010566762728146013, 'mean_word_length': 3.9477434679334915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6900797', 'n_tokens_mistral': 650, 'n_tokens_neox': 615, 'n_words': 264}