Closed GoogleCodeExporter closed 9 years ago
Finally found a work-around:
Change your class to: public class MessageListener extends
ListenerAdapter<CustomBot>
Change your method to: public void onMessage(MessageEvent<CustomBot> event)
Then, to avoid the addListener() error I described above, replace
builder.addListener(new MessageListener());
with
builder.getListenerManager().addListener(new MessageListener());
That seems to work. Good luck if you have the same problem.
Original comment by kinaj.e...@freenet.de
on 6 May 2014 at 8:53
Going through old issues, can you try the latest snapshot? This compiles for me
class CustomBot extends PircBotX {
public CustomBot(Configuration<? extends PircBotX> configuration) {
super(configuration);
}
}
class MessageListener extends ListenerAdapter<CustomBot> {
@Override
public void onMessage(MessageEvent<CustomBot> event) throws Exception {
}
}
public class IssueExample {
public static void main(String[] args) {
Configuration config = new Configuration.Builder()
.addListener(new MessageListener())
.buildConfiguration();
}
}
Original comment by Lord.Qua...@gmail.com
on 17 Jul 2014 at 1:12
It looks like it's working now.
Thank you very much!
Original comment by kinaj.e...@freenet.de
on 2 Oct 2014 at 8:22
Great
Original comment by Lord.Qua...@gmail.com
on 2 Oct 2014 at 9:22
Original issue reported on code.google.com by
kinaj.e...@freenet.de
on 1 May 2014 at 2:14