<commit_before>module.exports = {
	Metadata: {
		Name: "Help",
		Description: "Shows help"
	},

	Execute: (Args, message) => {
		let s = new Server.Server(message.guild.id);
		s.prefix.then((prefix) => {
			if(Args.length >= 1){
				try{
					let Command = Args[0].toLowerCase();
					if(Sledgehammer.Commands.All.indexOf(Command) > -1){

						let helpMsg = `__**${Command.capFirst()}**__\n\n`;
						helpMsg += Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Description+"\n\n";

						helpMsg += `**Usage: **\`${prefix}${Command.capFirst()}\` ${Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Usage}\n\n`;
						helpMsg += `**Cooldown: ** ${Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Cooldown.formatNumber()} seconds.`;
						if(Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].hasOwnProperty("Extra")){
							for(let Extra in Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Extra){
								helpMsg += "\n";
								helpMsg += `**${Extra.replace("__", " ")}: `;
								if(Array.isArray(Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Extra[Extra])){
									helpMsg += `${Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Extra[Extra].join(', ')}`;
									helpMsg += "**";
								}
							}
						}

						message.channel.sendMessage(helpMsg);
					}
				}catch(e){
					console.dir(e.stack);
				}
			}else{
				let msg = `Okay, ${message.author.username}, check your messages.`;
				let x = {};

				let m = "```ini\n";
				Sledgehammer.Commands.All.map((a) => {
					let Group = Sledgehammer.Commands.Map[a];
					if(x in Group){
						x[Group] = [];
					}

					let Commands = Sledgehammer.Commands.List[Group];

					for(Command in Commands){
						if(x[Group].indexOf(Command) === -1){<commit_msg>ouch inversed it eariler.<commit_after>module.exports = {
	Metadata: {
		Name: "Help",
		Description: "Shows help"
	},

	Execute: (Args, message) => {
		let s = new Server.Server(message.guild.id);
		s.prefix.then((prefix) => {
			if(Args.length >= 1){
				try{
					let Command = Args[0].toLowerCase();
					if(Sledgehammer.Commands.All.indexOf(Command) > -1){

						let helpMsg = `__**${Command.capFirst()}**__\n\n`;
						helpMsg += Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Description+"\n\n";

						helpMsg += `**Usage: **\`${prefix}${Command.capFirst()}\` ${Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Usage}\n\n`;
						helpMsg += `**Cooldown: ** ${Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Cooldown.formatNumber()} seconds.`;
						if(Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].hasOwnProperty("Extra")){
							for(let Extra in Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Extra){
								helpMsg += "\n";
								helpMsg += `**${Extra.replace("__", " ")}: `;
								if(Array.isArray(Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Extra[Extra])){
									helpMsg += `${Sledgehammer.Commands.List[Sledgehammer.Commands.Map[Command]][Command].Extra[Extra].join(', ')}`;
									helpMsg += "**";
								}
							}
						}

						message.channel.sendMessage(helpMsg);
					}
				}catch(e){
					console.dir(e.stack);
				}
			}else{
				let msg = `Okay, ${message.author.username}, check your messages.`;
				let x = {};

				let m = "```ini\n";
				Sledgehammer.Commands.All.map((a) => {
					let Group = Sledgehammer.Commands.Map[a];
					if(Group in x){
						x[Group] = [];
					}

					let Commands = Sledgehammer.Commands.List[Group];

					for(Command in Commands){
						if(x[Group].indexOf(Command) === -1){
{'fraction_non_alphanumeric': 0.19401799894123875, 'fraction_numerical': 0.0021175224986765486, 'mean_word_length': 3.49346016646849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1440927', 'n_tokens_mistral': 1637, 'n_tokens_neox': 1307, 'n_words': 164}