fre024 Posted June 10, 2014 Posted June 10, 2014 public void onMessage(String message) throws InterruptedException { Mylog("Checking chat"); if (message.contains("poisoned")) { } } This does nothing for me
Jack Posted June 10, 2014 Posted June 10, 2014 public void onMessage(Message message) { if(message!=null){ //stuff } } It now takes on a Message type, not string type.
Extreme Scripts Posted June 10, 2014 Posted June 10, 2014 public void onMessage(Message message) { if(message!=null){ //stuff } } It now takes on a Message type, not string type. It actually accepts String as a parameter. On-topic: The onMessage is broken as of the moment yes.
thepecher Posted June 10, 2014 Posted June 10, 2014 public void onMessage(String message) throws InterruptedException { Mylog("Checking chat"); if (message.contains("poisoned")) { } } This does nothing for me Try just to change a variable inside the onMessage then do whatever you want with it in the onloop
Jack Posted June 10, 2014 Posted June 10, 2014 It actually accepts String as a parameter. On-topic: The onMessage is broken as of the moment yes. Osbot 2