tetrapus / Karkat

Multithreaded python IRC socket bot.
16 stars 5 forks source link

Alter plugin interface #39

Open tetrapus opened 11 years ago

tetrapus commented 11 years ago
  1. The (name, bot, printer) signature is clunky. Get rid of name and make bot inherit from printer.
  2. The initialise closure is essentially mandatory for plugins. We can make it optional by inspecting the argspec on load and passing in the bot object. More messily (but more implicitly), we can directly modify the namespace of defined callbacks when hooked.