<commit_before>module FelyneBot
	module Commands
		module AddMod
			extend Discordrb::Commands::CommandContainer
			command(
					:addmod,
					description: "Kills felyne",
					useage: "addmod <@name> <level>",
					permission_level: 800,
					min_args: 1,
					max_args: 2,
					permission_message: "I'm sorry Dave, I cannot do that.",
			) do |event, uname, level|
				permarray = []
				permarray = loadArr(permarray,"userbase/perm")
				if $bot.parse_mention(uname) !=nil
					userid = $bot.parse_mention(uname).id
					username = $bot.parse_mention(uname).name
					if permarray.include? userid
						event << "User permissions found... Updating permissions."
						hash = Hash[permarray.map.with_index.to_a]
						i = hash[userid]
						event << "Current permission level: #{i}"
					else
						event << "User permissions not found... Adding permissions."
					end
				else
					event << "Invalid user."
				end
				puts "#{event.timestamp}: #{event.user.name}: CMD: addmod"
				nil
			end
		end
	end
end<commit_msg>test addmod<commit_after>module FelyneBot
	module Commands
		module AddMod
			extend Discordrb::Commands::CommandContainer
			command(
					:addmod,
					description: "Kills felyne",
					useage: "addmod <@name> <level>",
					permission_level: 800,
					min_args: 1,
					max_args: 2,
					permission_message: "I'm sorry Dave, I cannot do that.",
			) do |event, uname, level|
				permarray = []
				permarray = loadArr(permarray,"userbase/perm")
				if $bot.parse_mention(uname) !=nil
					userid = $bot.parse_mention(uname).id
					username = $bot.parse_mention(uname).name
					if permarray.include? userid
						event << "User permissions found... Updating permissions."
						hash = Hash[permarray.map.with_index.to_a]
						i = hash[userid].to_i
						curlevel = permarray[i+2]
						event << "Current permission level: #{curlevel}"
					else
						event << "User permissions not found... Adding permissions."
					end
				else
					event << "Invalid user."
				end
				puts "#{event.timestamp}: #{event.user.name}: CMD: addmod"
				nil
			end
		end
	end
end
{'fraction_non_alphanumeric': 0.12021072796934866, 'fraction_numerical': 0.005268199233716475, 'mean_word_length': 2.8973880597014925, 'pattern_counts': {'":': 0, '<': 23, '<?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': '960351', 'n_tokens_mistral': 908, 'n_tokens_neox': 672, 'n_words': 178}