<commit_before>const
    discord = require('discord.js'),
    config = require('../config/config.json'),
    fs = require('fs'),
    alias = require('../events/message.js').alias;

exports.run = async (bot,msg,args) => {
  const embedClass  = require('../classes/embedMessage.js');
    let embedMessage = new embedClass(msg);

    if (args[0]) {
        msg.delete();
        if (args[0].toLowerCase() === 'fun') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'fun') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend
                })
            });

        }
        else if (args[0].toLowerCase() === 'util') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'util') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend
                })
            });

        }
        else if (args[0].toLowerCase() === 'moderation') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'moderation') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend
                })
            });

        }
        else if (args[0].toLowerCase() === 'music') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'music') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend
                })
            });<commit_msg>Added colors to the specific topic in help<commit_after>const
    discord = require('discord.js'),
    config = require('../config/config.json'),
    fs = require('fs'),
    alias = require('../events/message.js').alias;

exports.run = async (bot,msg,args) => {
  const embedClass  = require('../classes/embedMessage.js');
    let embedMessage = new embedClass(msg);

    if (args[0]) {
        msg.delete();
        if (args[0].toLowerCase() === 'fun') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'fun') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend,
                    color  : 0x1FBAED
                })
            });

        }
        else if (args[0].toLowerCase() === 'util') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'util') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend,
                    color  : 0x1FBAED
                })
            });

        }
        else if (args[0].toLowerCase() === 'moderation') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'moderation') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend,
                    color  : 0x1FBAED
                })
            });

        }
        else if (args[0].toLowerCase() === 'music') {
            let comm = [];
            fs.readdir('./commands/', (err,files) => {
                if (err) logger.error(err);
                files.forEach(file => {
                    let info = require('./' + file);
                    if (info.help.category === 'music') {
                        comm.push(`**${config.PREFIX}${file.split('.')[0]}** ${info.help.description}`)
                    }
                });
                let toSend = comm.join('\n');
                embedMessage.descEmbed({
                    type: 'desc',
                    content: toSend,
                    color  : 0x1FBAED
                })
            });
{'fraction_non_alphanumeric': 0.16952350998584684, 'fraction_numerical': 0.004088693190753263, 'mean_word_length': 1.1370967741935485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '571552', 'n_tokens_mistral': 1718, 'n_tokens_neox': 1613, 'n_words': 289}