<commit_before>module.exports = function TennuRouletteModule (tennu) {

    chambers = [ 0, 0, 0, 0, 0, 0 ];

    function reload() {
        chambers = [ 0, 0, 0, 0, 0, 0 ];
        chambers[Math.floor(Math.random()*chambers.length)] = 1;
        return 'reloads.';
    }

    function roulette (command) {
        var bullet = chambers.shift();
        var output = "chamber " + (6 - chambers.length) + " of 6 => ";

        if(bullet) {
            tennu.say(command.channel, output + "*BANG*");
            tennu.say(command.channel, command.sender + " has been shot");
            tennu.say(command.channel, reload(), true);
        } else {
            tennu.say(command.channel, output + "+click+");
        }
    };
    reload();

    return {
        handlers : {
            "!roulette" : roulette
        }
    };
};
<commit_msg>Updated the roulette module's output<commit_after>module.exports = function TennuRouletteModule (tennu) {

    chambers = [ 0, 0, 0, 0, 0, 0 ];

    function reload() {
        chambers = [ 0, 0, 0, 0, 0, 0 ];
        chambers[Math.floor(Math.random()*chambers.length)] = 1;
        return 'reloads.';
    }

    function roulette (command) {
        var bullet = chambers.shift();
        var output = "chamber " + (6 - chambers.length) + " of 6 => ";

        if((command.args[0] == "" || command.args[0] == null)) {
            if(bullet) {
                tennu.act(command.channel, "shoots " + output + "*BANG*");
                tennu.say(command.channel, command.sender + " has been shot");
                tennu.act(command.channel, reload(), true);
            } else {
                tennu.act(command.channel, "shoots " + output + "+click+");
            }
        } else if(command.args[0].match(/#\w+/g)) {
            if(bullet) {
                tennu.act(command.args[0], "shoots " + output + "*BANG*");
                tennu.say(command.args[0], command.sender + " has been shot");
                tennu.act(command.args[0], reload(), true);
            } else {
                tennu.act(command.args[0], "shoots " + output + "+click+");
            }
        }
    };
    reload();

    return {
        handlers : {
            "!roulette" : roulette
        }
    };
};

{'fraction_non_alphanumeric': 0.16442652329749105, 'fraction_numerical': 0.016577060931899642, 'mean_word_length': 1.79125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4119483', 'n_tokens_mistral': 766, 'n_tokens_neox': 688, 'n_words': 145}