Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -391,6 +391,11 @@ class FunguyBot:
|
||||
self.setup_plugins()
|
||||
logging.info("✓ Plugin setup complete")
|
||||
|
||||
# ----- NEW: Expose plugins dictionary on bot object -----
|
||||
self.bot.plugins = self.PLUGINS
|
||||
logging.info("✓ Plugin dictionary exposed on bot.plugins")
|
||||
# --------------------------------------------------------
|
||||
|
||||
# Defining listener for message events
|
||||
@self.bot.listener.on_message_event
|
||||
async def wrapper_handle_commands(room, message):
|
||||
|
||||
Reference in New Issue
Block a user