<commit_before><<<<<<< HEAD
const Discord = require('discord.js');

=======
>>>>>>> d85b943838bb366cd7629067c31beacdd486857d
exports.run = (client, message, args, level) => {

	if (!args[0]) {
		const myCommands = client.commands.filter(c => c.conf.permLevel <= level);
		const commandNames = myCommands.keyArray();
		const longest = commandNames.reduce((long, str) => Math.max(long, str.length), 0);
		let currentCategory = '';
		let output = `= Command List =\n\n[Use [prefix]help <commandname> for details]\n`;
		if (message.channel.type === 'dm') {
<<<<<<< HEAD
			output += `Moderation commands are disabled in DMs. Some other commands may also be disabled\n`;
=======
			output += `Moderation commands are disabled and hidden in DMs. Some other commands may also be disabled\n`;
>>>>>>> d85b943838bb366cd7629067c31beacdd486857d
		}
		const sorted = myCommands.sort((p, c) => p.help.category > c.help.category ? 1 : -1);
		sorted.forEach(c => {
			const cat = c.help.category.toProperCase();
			if (currentCategory !== cat) {
<<<<<<< HEAD
				//if (message.channel.type !== 'dm' || cat !== 'Moderation') {
					output += `\n== ${cat} ==\n`;
				//}
				//output += `\n== ${cat} ==\n`;
				currentCategory = cat;
			}
			/*if (cat === 'Moderation' && message.channel.type === 'dm') {
				output += '';
			} else {*/
				output += `${c.help.name}${' '.repeat(longest - c.help.name.length)} :: ${c.help.description}\n`;
			//}

		});
    
    var helpEmbed = new Discord.RichEmbed()
      .setTitle('Help')
      .setDescription(`\`\`\`asciidoc\n${output}\`\`\``);
		message.channel.send({ embed: helpEmbed });
=======
				if (message.channel.type !== 'dm' || cat !== 'Moderation') {
					output += `\n== ${cat} ==\n`;
				}
				//output += `\n== ${cat} ==\n`;
				currentCategory = cat;
			}
			if (cat === 'Moderation' && message.channel.type === 'dm') {
				output += '';
			} else {
				output += `${c.help.name}${' '.repeat(longest - c.help.name.length)} :: ${c.help.description}\n`;
			}

		});
		message.channel.send(output, { code: 'asciidoc' });
>>>>>>> d85b943838bb366cd7629067c31beacdd486857d
	} else {
		let command = args[0];<commit_msg>Before import of NdT3Development/DiscordBot<commit_after>exports.run = (client, message, args, level) => {

	if (!args[0]) {
		const myCommands = client.commands.filter(c => c.conf.permLevel <= level);
		const commandNames = myCommands.keyArray();
		const longest = commandNames.reduce((long, str) => Math.max(long, str.length), 0);
		let currentCategory = '';
		let output = `= Command List =\n\n[Use [prefix]help <commandname> for details]\n`;
		if (message.channel.type === 'dm') {
			output += `Moderation commands are disabled and hidden in DMs. Some other commands may also be disabled\n`;
		}
		const sorted = myCommands.sort((p, c) => p.help.category > c.help.category ? 1 : -1);
		sorted.forEach(c => {
			const cat = c.help.category.toProperCase();
			if (currentCategory !== cat) {
				if (message.channel.type !== 'dm' || cat !== 'Moderation') {
					output += `\n== ${cat} ==\n`;
				}
				//output += `\n== ${cat} ==\n`;
				currentCategory = cat;
			}
			/*if (cat === 'Moderation' && message.channel.type === 'dm') {
				output += '';
			} else {*/
				output += `${c.help.name}${' '.repeat(longest - c.help.name.length)} :: ${c.help.description}\n`;
			//}

		});
		message.channel.send(output, { code: 'asciidoc' });
	} else {
		let command = args[0];
{'fraction_non_alphanumeric': 0.21748026892721425, 'fraction_numerical': 0.02601578485822859, 'mean_word_length': 3.392811296534018, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7438766', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1196, 'n_words': 264}