You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an example, my recent discourse command contains a number of functions that must be prefix with discourse. That can be avoided if we use sub modules.
So it might be good to try refactoring it and see if it looks/works better.
how do we integrate our new plugin modules into the framework?
Do we want some
module PluginBase
@reexport Discord
"Entry point for a new command plugin, only triggers on MessageCreate"function handle_command end"Entry point for a new observer plugin, triggers on almost all events related to text chat"function handle_observer end#I suggest renaming handlers to observers since they act on observationsend
I wonder if we even need the separation between command and observer here.
We should put the code for each functionality under its own sub-module to avoid namespace clashes.
The text was updated successfully, but these errors were encountered: