errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.12k stars 612 forks source link

Feature: plugins detection using entrypoints #1590

Closed sijis closed 2 years ago

sijis commented 2 years ago

This feature should allow plugins to be detected using entrypoints when installed via pip.

The entrypoints are

A package would need to include this snippet in their setup.py to work. Using, https://github.com/errbotio/err-helloworld as an example, we need to add

...
    entry_points = {
        "errbot.plugins": [
            "helloworld = helloWorld:HelloWorld",
        ]
    }
...

I would suggest, plugins use the naming convention of errbot-plugin-$pluginName