<commit_before>module.exports = Cmds.addCommand({
    cmds: [';offenses', ';badoffenses', ';listoffenses', ';rules'],

    requires: {
        guild: true,
        loud: false,
    },

    desc: 'Output the list of offenses with defined mute times',

    args: '',

    example: '',

    // /////////////////////////////////////////////////////////////////////////////////////////

    func: async (cmd, args, msgObj, speaker, channel, guild) => {
        const sendEmbedFields = [];

        for (let i = 0; i < Mutes.badOffenses.length; i++) {
            const offenseData = Mutes.badOffenses[i];

            const offenseStr = offenseData.offense;
            const timeStr = Util.formatTime(offenseData.time);

            sendEmbedFields.push({ name: `[${i}]`, value: `Offense: ${offenseStr}\nDefined Time: ${timeStr}​`, inline: false });
        }

        Util.sendEmbed(channel, 'Bad Offenses', 'If a user commits an offense listed here, their maximum mute time is whichever is larger: The defined time for the offense or their next default mute time', Util.makeEmbedFooter(speaker), null, 0x00BCD4, sendEmbedFields);
    },
});<commit_msg>Format changes<commit_after>module.exports = Cmds.addCommand({
    cmds: [';offenses', ';badoffenses', ';listoffenses', ';rules'],

    requires: {
        guild: true,
        loud: false,
    },

    desc: 'Output the list of offenses with defined mute times',

    args: '',

    example: '',

    // /////////////////////////////////////////////////////////////////////////////////////////

    func: async (cmd, args, msgObj, speaker, channel, guild) => {
        const sendEmbedFields = [];

        for (let i = 0; i < Mutes.badOffenses.length; i++) {
            const offenseData = Mutes.badOffenses[i];

            const offenseStr = offenseData.offense;
            const timeStr = Util.formatTime(offenseData.time);

            sendEmbedFields.push({ name: `Tag: [${i}]`, value: `Offense: ${offenseStr}\nDefined Time: ${timeStr}​`, inline: false });
        }

        Util.sendEmbed(channel, 'Bad Offenses', 'If a user commits an offense listed here, their maximum mute time is whichever is larger: The defined time for the offense or their next default mute time.', Util.makeEmbedFooter(speaker), null, 0x00BCD4, sendEmbedFields);
    },
});
{'fraction_non_alphanumeric': 0.20286085825747724, 'fraction_numerical': 0.004334633723450368, 'mean_word_length': 2.1878453038674035, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2615431', 'n_tokens_mistral': 678, 'n_tokens_neox': 625, 'n_words': 192}