public static String removeMessageFlags(MessageContext context, String message) {
		String botNick = context.getBot().getNick();
		if (message.startsWith("%")) {
			// Emily was called by prefix
			message = message.substring(1);
		} else if (message.startsWith(botNick)) {
			// Emily was reffered to by name
			int nickLength = botNick.length();
			// NickLength + 2, so that messages like "Emily, q" or "Emily: d"
			// work as intended
			if (message.length() > nickLength + 2) {
				if (message.charAt(nickLength) == ','
						|| message.charAt(nickLength) == ':') {
					message = message.substring(nickLength + 2);
				}
			}
		}
		return message;
	}