package modules;

import bot.Message;

public class NoBro implements Module {
	private String[] triggers = {"kitykatt","man"};
	@Override
	public void parse(Message m) {
		String target = m.param();
		if(!m.param().startsWith("#")) target = m.sender();
		if(m.sender().startsWith("poo") || m.senderAddress().contains("zero@")){
			for(String trigger : triggers){
				if(m.trailing().toLowerCase().contains(trigger)){
					m.say(target, "fuck off bro");
				}
			}
		}
		if(m.command().equals("JOIN")){
			if(m.sender().startsWith("poo") || m.senderAddress().contains("zero@")){
				m.say(m.trailing(), "4ALERT ALERT POSSIBLE BRO DETECTED");
			}
		}
	}

}

@@ -105,16 +105,17 @@
  = %7B%22kit
+t
 ykatt%22,%22

fix the triggers