Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Feature: Extend plugin framework #368

Closed
echiu64 opened this Issue · 5 comments

2 participants

@echiu64

1) Create base Plugin class for all plugins to extend
2) Base class will have methods:

    def isReloadable:
        return True/False
    def isStoppable:
        return True/False
    def start:
        hook('plugin.x.start')
        # start plugin
    def stop:
        hook('plugin.x.stop')
        # stop plugin
    def reload:
        hook('plugin.x.reload')
        # reload plugin configuration

Hooks are added in so that any dependent plugin/system can be notified when a plugin starts/stops.

@echiu64

Delagger and lpbot are candidates to be moved into plugins

@c00w
Owner

I like moving lpbot to be a plugin. Moving the delagger to be a plugin sounds like a bad idea since someone might disable it.

@c00w
Owner

lpbot is moved.

@echiu64

That was quick!

@c00w
Owner

I'm actually getting rid of plugins. Not a lot of people wrote them and they tended to be much to complicated. Plus the callback hooks were quite hard to debug.

@c00w c00w closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.