What's the difference between a plugin and an extension? #247
-
|
What's the difference between a plugin and an extension? It appears to be similar, hence my question. Would you register a plugin the same way you register an extension? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
A plugin is effectively a "category" - it can have commands and listeners registered to it and can be plugged into and removed from the bot at any time. An extension is a python file with a load function declared in it, and optionally an unload function, which can be loaded, unloaded and reloaded at any time. An extension can contain many plugins, commands, listeners, or anything else you may wish to have in the extension. |
Beta Was this translation helpful? Give feedback.
A plugin is effectively a "category" - it can have commands and listeners registered to it and can be plugged into and removed from the bot at any time.
An extension is a python file with a load function declared in it, and optionally an unload function, which can be loaded, unloaded and reloaded at any time. An extension can contain many plugins, commands, listeners, or anything else you may wish to have in the extension.