<commit_before>var helpers = require('./../helpers');

function poke(bot, user, userID, channelID, message) {
    helpers.statistics("poke", user, userID, channelID, message);
    if (parameters[1] === undefined) {
        switch (helpers.randomator(3)) {
            case 0:
                bot.sendMessage({
                    to: channelID,
                    message: "[WolfBot pokes <@" + userID + "> lightly.] o:"
                });
                break;
            case 1:
                bot.sendMessage({
                    to: channelID,
                    message: "[WolfBot noses <@" + userID + "> gently, poking them.] `o3o`"
                });
                break;
            case 2:
                bot.sendMessage({
                    to: channelID,
                    message: "[WolfBot nudges <@" + userID + "> gently with a paw.]"
                });
                break;
        }
    } else {
        var pokedUser = "";
        for (var i = 1; i < parameters.length; i++) {
            pokedUser = pokedUser + parameters[1];
        };
        switch (helpers.randomator(3)) {
            case 0:
                bot.sendMessage({
                    to: channelID,
                    message: "<@" + userID + "> pokes " + pokedUser + " lightly."
                });
                break;
            case 1:
                bot.sendMessage({
                    to: channelID,
                    message: "<@" + userID + "> nudges " + pokedUser + " with a finger."
                });
                break;
            case 2:
                bot.sendMessage({
                    to: channelID,
                    message: "<@" + userID + "> pokes " + pokedUser + ". You there? ;w;"
                });
                break;
        }
    }
}

module.exports = {
    command: poke
}
<commit_msg>Fix poke function<commit_after>var helpers = require('./../helpers');

function poke(bot, user, userID, channelID, message) {
    helpers.statistics("poke", user, userID, channelID, message);
    if (parameters[1] === undefined) {
        switch (helpers.randomator(3)) {
            case 0:
                bot.sendMessage({
                    to: channelID,
                    message: "[WolfBot pokes **" + user + "** lightly.] o:"
                });
                break;
            case 1:
                bot.sendMessage({
                    to: channelID,
                    message: "[WolfBot noses **" + user + "** gently, poking them.] `o3o`"
                });
                break;
            case 2:
                bot.sendMessage({
                    to: channelID,
                    message: "[WolfBot nudges **" + user + "** gently with a paw.]"
                });
                break;
        }
    } else {
        var pokedUser = "";
        pokedUser = bot.fixMessage(parameters[1]);
        pokedUser = pokedUser.substring(1);
        switch (helpers.randomator(3)) {
            case 0:
                bot.sendMessage({
                    to: channelID,
                    message: "**" + user + "** pokes " + pokedUser + " lightly."
                });
                break;
            case 1:
                bot.sendMessage({
                    to: channelID,
                    message: "**" + user + "** nudges " + pokedUser + " with a finger."
                });
                break;
            case 2:
                bot.sendMessage({
                    to: channelID,
                    message: "**" + user + "** pokes " + pokedUser + ". You there? ;w;"
                });
                break;
        }
    }
}

module.exports = {
    command: poke
}

{'fraction_non_alphanumeric': 0.12824719715613891, 'fraction_numerical': 0.006562756357670222, 'mean_word_length': 1.0736961451247165, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, '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': '3168364', 'n_tokens_mistral': 1027, 'n_tokens_neox': 938, 'n_words': 224}