public static void run(Bot bot, String channel, String sender, String message) {
		
		//initialize array on first run
		if (init == false) {
			for (int i = 0; i < 10; i++) links[i] = "*feed me*";
			init = true;
		}
		
		// command "!submit"
		int index = 0;
		if (message.matches("^[.!][sS]ubmit(.*)")) {
			String[] words = message.split("\\s");
			for (String word : words) {
				if (word.matches("^http(s)?://(.*)")) {
					links[index] = word;
				}
				index++;
				if (index >= MAX_LINKS) index = 0;
			}
			
		// command "!view"
		} else if (message.matches("^[.!][vV]iew[aA]ll(.*)")) {
			for (int i = 0; i < 10; i++) bot.sendMessage(channel, "> " + links[i]);
		} else if (message.matches("^[.!][vV]iew(.*)")) {
					bot.sendRandomMessage(links, channel, "Link:");
		}

	}