Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -113,3 +113,16 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
# Send unauthorized message if the sender is not the admin
|
||||
await bot.api.send_text_message(room.room_id, "You are not authorized to unload plugins.")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Load/unload plugins at runtime"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>Admin: !load / !unload</strong></summary>
|
||||
<p><code>!load <plugin></code> / <code>!unload <plugin></code> – Dynamically load or unload a plugin module. Admin only.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user