hamperbot / hamper

an irc bot
MIT License
19 stars 42 forks source link

Plugin Priority Unbreakening #135

Open edunham opened 6 years ago

edunham commented 6 years ago

Plugins have priorities. This is good.

What is not good is that the priorities are hard-coded integers in the body of each plugin.

That should go away.

Instead, plugins should get priorities based on the order they're declared in the settings file.

The top plugin in the list should have the highest priority, and the bottom plugin should have the lowest.

This makes priorities sort of ephemeral per time the config is read but that is ok because they can and should change as needed.