barrucadu / yukibot

An IRC bot, and associated libraries, for the ##compsoc-uk-anime channel on Freenode
MIT License
10 stars 2 forks source link

Logging plugin #13

Closed barrucadu closed 8 years ago

barrucadu commented 10 years ago

Now that yukibot is lurking in #hacksoc-committee, optional logging would be really useful.

barrucadu commented 10 years ago

This is actually less trivial than I thought if we also want to log messages yukibot sends, as at the moment there is no way to hook into that information.

One way that doesn't require changing the current architecture is to redirect stdout, and process that (as it is a complete log), but that's messy and requires reading serialised messages.

Taneb commented 10 years ago

Would it be possible to have plugins trigger when reply is called?

barrucadu commented 10 years ago

At the moment, no; but a notion of outgoing event handlers could be introduced.