Closed GoogleCodeExporter closed 9 years ago
Why couldn't you make your own listener manager? You could extend
ThreadedListenerManager or just use the ListenerManager interface. This is
somewhat similar to what quackbot does: Run verification that the bot isn't
locked for the user, channel, or server; if everything passes run the command.
The only thing I haven't done is make an event for each line of output, which
would enable you to "reject" certain output lines. I used to have this in the
code base but removed it for being extremely complex
Original comment by Lord.Qua...@gmail.com
on 2 Jan 2013 at 8:05
This might come from how my other (python) bot works.
As I mentioned, one of the issues with the current design is there is no
priorities, so any filtering or cancelling might fire after other listeners
already have received the input. Having said that, I guess a custom Manager
could handle that.
One hangup I have is that the architecture is class based. Once again, a custom
Manager could take care of that.
My other bot uses decorators with arguments both for PRIVMSG triggers as well
as raw IRC events, making the plugin much more flexible. (Plugins don't handle
trigger characters or if the bot triggers via nick, but that's besides the
point, this is a library, not a full bot implementation.)
Original comment by entityreborn
on 2 Jan 2013 at 8:19
Original comment by entityreborn
on 5 Jan 2013 at 12:35
Original comment by entityreborn
on 7 Jan 2013 at 4:47
Original issue reported on code.google.com by
entityreborn
on 2 Jan 2013 at 7:53