llimllib / limbo

A simple, clean, easy to modify Slack chatbot
MIT License
402 stars 160 forks source link

load plugins from additive directories #222

Open appleshampooid opened 9 months ago

appleshampooid commented 9 months ago

Addresses https://github.com/llimllib/limbo/issues/221 with an extension to the --pluginpath argument.

If one wishes to add some plugins, and keep the original, you will have to invoke it with two -p arguments: your custom plugins, and then a path to the default plugin dir. e.g.:

SLACK_TOKEN=<REDACTED> /home/appleshampoo/venvs/limbo-fresh/bin/limbo -d /home/appleshampoo/gitlab/cannabot/test.db -p /home/appleshampoo/gitlab/cannabot/limbo_plugins -p ./limbo/plugins

Happy to accept feedback and constructive criticism. I am not an experienced pythonista :joy:

llimllib commented 5 months ago

Apologies for the super slow review!

appleshampooid commented 5 months ago

Apologies for the super slow review!

No problem at all, I understand this is not anyone's full time job. Taking a look at your suggestions this weekend!