<commit_before>ajax-chat-plugins
=================

Plugins for frug's Ajax Chat

This assumes you have the CustomAjaxChat.php file set up with the `parseCustomCommands()` function.

It should start out like this:

```php
function parseCustomCommands($text, $textParts) {

if($this->getUserRole() == AJAX_CHAT_ADMIN || $this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() == AJAX_CHAT_USER || $this->getUserRole() == AJAX_CHAT_GUEST) {
  switch($textParts[0]) {
```

Please look at the included example for more info.

##Table of comments

* [XKCD](#xkcd)
* [Stock](#stock)
* [Hype Machine](#hypem)
* [NSFW](#nsfw)
* [Soundcloud](#sc)

###/xkcd

This gets comics from XKCD.com.


Valid usage:

    /xkcd
    /xkcd new<commit_msg>Linking to wiki for integration<commit_after>ajax-chat-plugins
=================

Plugins for frug's Ajax Chat

This assumes you have the CustomAjaxChat.php file set up with the `parseCustomCommands()` function.

It should start out like this:

```php
function parseCustomCommands($text, $textParts) {

if($this->getUserRole() == AJAX_CHAT_ADMIN || $this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() == AJAX_CHAT_USER || $this->getUserRole() == AJAX_CHAT_GUEST) {
  switch($textParts[0]) {
```

Please look at the included example for more info, or [the wiki page](https://github.com/Frug/AJAX-Chat/wiki/Custom-irc-style-commands#server-side) for better details.

##Table of comments

* [XKCD](#xkcd)
* [Stock](#stock)
* [Hype Machine](#hypem)
* [NSFW](#nsfw)
* [Soundcloud](#sc)

###/xkcd

This gets comics from XKCD.com.


Valid usage:

    /xkcd
    /xkcd new
{'fraction_non_alphanumeric': 0.16820702402957485, 'fraction_numerical': 0.0012322858903265558, 'mean_word_length': 5.151515151515151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 1, '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': '4055703', 'n_tokens_mistral': 610, 'n_tokens_neox': 571, 'n_words': 144}