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.
Answered by
tandemdude
May 16, 2022
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.
0 replies
Answer selected by
g4bey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.