zD12 / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

Adding Listeners after PircBotX creation #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There appears to be no documented method to add Listeners after the bot is 
created.  I believe this was present in pre-2.0 capabilities

What version of the product are you using? On what operating system?
2.0.1

Please provide any additional information below.
Listeners should be able to be created and added at runtime, rather than being 
required before the bot is allocated.

Original issue reported on code.google.com by demo...@gmail.com on 4 Feb 2014 at 2:28

GoogleCodeExporter commented 9 years ago
You can add listeners to the ListenerManager in Configuration anytime you want 
using the same code as you would normally:

config.getListenerManager().addListener(yourListener);

Temporary listeners that are created by things like cycle() rely on being able 
to add and remove listeners after the bot starts

Original comment by Lord.Qua...@gmail.com on 4 Feb 2014 at 2:34

GoogleCodeExporter commented 9 years ago
However this does not Start the listener.

Original comment by rstr5...@gmail.com on 30 Aug 2014 at 3:48