Esempio n. 1
0
def plugin_start():
    "Initialise the Hutton Helper plugin."

    this.helper = plugin_module.HuttonHelperHelper(config, _refresh, _status)
    this.plugins = [
        # A list of plugins to which we pass events.
        updater.UpdatePlugin(this.helper),
        cgt.CommunityGoalWatcher(this.helper),
        forward.ForTheMugPlugin(this.helper),
        local.CommandPlugin(this.helper),
        shopping.ShoppingListPlugin(this.helper),
        influence.InfluencePlugin(this.helper),
        progress.ProgressPlugin(this.helper),
        exploration.ExplorationPlugin(this.helper),
        market.MarketPlugin(this.helper),
        panic.PanicPlugin(this.helper),
    ]

    for plugin in plugins:
        try:
            plugin.plugin_start()
        except:
            PANIC("{}.plugin_start".format(plugin))

    return 'Hutton Helper'
Esempio n. 2
0
def plugin_start(plugin_dir):
    "Initialise the Hutton Helper plugin."

    this.helper = plugin_module.HuttonHelperHelper(config, _refresh, _status)
    this.plugins = [
        # A list of plugins to which we pass events.
        updater.UpdatePlugin(this.helper),
        forward.ForTheMugPlugin(this.helper),
        local.CommandPlugin(this.helper),
        market.MarketPlugin(this.helper),
        cargo.CargoPlugin(this.helper),
        # pwpevents.PwpEventsPlugin(this.helper),
    ]

    for plugin in plugins:
        try:
            plugin.plugin_start()
        except:
            PANIC("{}.plugin_start".format(plugin))

    return 'Hutton Helper Lite'