<commit_before><?php

/**
 * Whoopass command. When a normal beating just won't do!
 *
 * Do not directly edit this file.
 * If you want to change the rank, see commands.permissions in the configuration.
 */
use Dan\Irc\Connection;
use Dan\Irc\Location\Channel;
use Dan\Irc\Location\User;

command(['whoopass'])
    ->helpText('When a normal beating just won\'t do!')
    ->handler(function (Connection $connection, User $user, $message, Channel $channel) {
        $data = explode(' ', $message);

        if ($data[0] && $user->hasPermissionTo('kick')) {
            if (!$channel->getUser($connection->user)->hasPermissionTo('kick')) {
                $user->notice('I\'m not allowed to kick users here.');

                return;
            }

            $channel->kick($data[0], 'When a normal beating just won\'t do! WHOOPASS! Extra strength! http://skycld.co/whoopass');

            return;
        }

        $channel->message('When a normal beating just won\'t do! http://skycld.co/whoopass');
    });<commit_msg>Closes #39<commit_after><?php

/**
 * Whoopass command. When a normal beating just won't do!
 *
 * Do not directly edit this file.
 * If you want to change the rank, see commands.permissions in the configuration.
 */
use Dan\Irc\Connection;
use Dan\Irc\Location\Channel;
use Dan\Irc\Location\User;

command(['whoopass'])
    ->helpText('When a normal beating just won\'t do!')
    ->handler(function (Connection $connection, User $user, $message, Channel $channel) {
        $channel->message("When a normal beating just won't do! http://skycld.co/whoopass");
    });
{'fraction_non_alphanumeric': 0.1487758945386064, 'fraction_numerical': 0.0025109855618330196, 'mean_word_length': 3.0976863753213366, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '3845280', 'n_tokens_mistral': 482, 'n_tokens_neox': 470, 'n_words': 146}