<commit_before>module FelyneBot
	module Commands
		module Help
			extend Discordrb::Commands::CommandContainer
			command(
					:help,
					description: "Shows all commands. If command is added will show the description",
					useage: "help <command>"
			) do |event, more|
				admin = []
				database = []
				helpful = []
				mods = []
				raids = []
				roles = []
				Dir["commands/admin/*.rb"].each {|file| admin.push(file) }
				Dir["commands/database/*.rb"].each {|file| database.push(file) }
				Dir["commands/helpful/*.rb"].each {|file| helpful.push(file) }
				Dir["commands/mods/*.rb"].each {|file| mods.push(file) }
				Dir["commands/raids/*.rb"].each {|file| raids.push(file) }
				Dir["commands/roles/*.rb"].each {|file| roles.push(file) }
				if more == nil
					more = "none"
					out = "```#IGN/Guild/Timezone Database\n"
					database.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Helpful Commands\n"
					helpful.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Role Commands\n"
					roles.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Raids\n"
					raids.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Mod only\n"
					mods.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "#Admin/Troubleshooting\n"
					admin.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\nTo get more info about a specific command type: #{$prefix}help <command>```"
				else
					search = more.to_sym
					if $bot.commands[search] != nil
						desc = $bot.commands[search].attributes[:description]
						useage = $bot.commands[search].attributes[:usage]
						out = "#{$prefix}#{more}: ``#{desc}``"
						if useage != nil
							out << "\nUseage: ``#{$prefix}#{useage}``"
						end
					else
						out = "No such command exists."
					end
				end
				event << out
				puts '#{event.timestamp}: #{event.user.name}: CMD: help'<commit_msg>using basename<commit_after>module FelyneBot
	module Commands
		module Help
			extend Discordrb::Commands::CommandContainer
			command(
					:help,
					description: "Shows all commands. If command is added will show the description",
					useage: "help <command>"
			) do |event, more|
				admin = []
				database = []
				helpful = []
				mods = []
				raids = []
				roles = []
				Dir["commands/admin/*.rb"].each {|basename| admin.push(basename) }
				Dir["commands/database/*.rb"].each {|basename| database.push(basename) }
				Dir["commands/helpful/*.rb"].each {|basename| helpful.push(basename) }
				Dir["commands/mods/*.rb"].each {|basename| mods.push(basename) }
				Dir["commands/raids/*.rb"].each {|basename| raids.push(basename) }
				Dir["commands/roles/*.rb"].each {|basename| roles.push(basename) }
				if more == nil
					more = "none"
					out = "```#IGN/Guild/Timezone Database\n"
					database.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Helpful Commands\n"
					helpful.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Role Commands\n"
					roles.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Raids\n"
					raids.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\n#Mod only\n"
					mods.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "#Admin/Troubleshooting\n"
					admin.each { |x| out << "	#{$prefix}#{x}\n" }
					out << "\nTo get more info about a specific command type: #{$prefix}help <command>```"
				else
					search = more.to_sym
					if $bot.commands[search] != nil
						desc = $bot.commands[search].attributes[:description]
						useage = $bot.commands[search].attributes[:usage]
						out = "#{$prefix}#{more}: ``#{desc}``"
						if useage != nil
							out << "\nUseage: ``#{$prefix}#{useage}``"
						end
					else
						out = "No such command exists."
					end
				end
				event << out
				puts '#{event.timestamp}: #{event.user.name}: CMD: help'
{'fraction_non_alphanumeric': 0.20458739783812285, 'fraction_numerical': 0.0, 'mean_word_length': 2.7864271457085827, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 7, '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': '4519177', 'n_tokens_mistral': 1721, 'n_tokens_neox': 1358, 'n_words': 288}