grickit / Gambot

Gambot is a modular IRC bot written in Perl.
irc://chat.freenode.net:6667/%23%23Gambot
GNU General Public License v3.0
21 stars 10 forks source link

Channel Log Plugin #31

Open TaylorWorthing opened 10 years ago

TaylorWorthing commented 10 years ago

A plugin implementation for logging channel conversations, joins/parts, and actions in a format similar to client output as opposed to raw IRC.

grickit commented 10 years ago

So there's two routes to go with this:

An actual PluginParser plugin that keeps logs

  1. Con: Takes up extra file space with double logging
  2. Pro: Easy to implement
  3. Pro: We're already parsing messages there

A new logging module (see modules/Gambot/LoggerBasic.pm)

  1. Con: Requires parsing every IRC message inside the bot core in addition to the normal message parser operations
  2. Pro: Less file usage
  3. Con: How to handle non-message bot logs?
  4. Con: Requires module loading/unloading/swapping/choosing logic
  5. Pro: Showcases the modularity of the Gambot core