<commit_before>module FelyneBot
	module Commands
		module Wiki
			extend Discordrb::Commands::CommandContainer
			command(:wiki, description: 'Searches the Wiki') do |event, list, search|
				if list == 'mats'
					event << "http://monsterhunteronline.in/materials/?search=#{search}"
				else
					if list == 'skill'
						event << "http://monsterhunteronline.in/skills/?search=#{search}"
					else
						if list == 'armor'
							event << "http://monsterhunteronline.in/armor/?search=#{search}"
						else
							wiki = IO.readlines("bot/wiki")[0]
							wiki = wiki.split(",")
							links = ""
							wiki.grep(/#{list}/).each { |x| links << "http://monsterhunteronline.in/#{x} \n" }
							if links.length > 2000
								event << "Output has too many characters. Please be more specific in your search."
							else
								event << links
							end
						end
					end
				end
				nil
			end
		end
	end<commit_msg>if search is blank<commit_after>module FelyneBot
	module Commands
		module Wiki
			extend Discordrb::Commands::CommandContainer
			command(:wiki, description: 'Searches the Wiki') do |event, list, search|
				if list == 'mats'
					event << "http://monsterhunteronline.in/materials/?search=#{search}"
				else
					if list == 'skill'
						event << "http://monsterhunteronline.in/skills/?search=#{search}"
					else
						if list == 'armor'
							event << "http://monsterhunteronline.in/armor/?search=#{search}"
						else
							wiki = IO.readlines("bot/wiki")[0]
							wiki = wiki.split(",")
							links = ""
							wiki.grep(/#{list}/).each { |x| links << "http://monsterhunteronline.in/#{x} \n" }
							if links.length > 2000
								event << "Output has too many characters. Please be more specific in your search."
							else
								if links.length < 1
									event << "I wasn't able to dig up any results.  Please try something else!"
								else
									event << links
								end
							end
						end
					end
				end
				nil
			end
		end
	end
{'fraction_non_alphanumeric': 0.13585858585858585, 'fraction_numerical': 0.005555555555555556, 'mean_word_length': 2.363327674023769, 'pattern_counts': {'":': 0, '<': 30, '<?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': '1950156', 'n_tokens_mistral': 897, 'n_tokens_neox': 614, 'n_words': 164}