Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -62,3 +62,20 @@ async def run_cron_jobs(bot):
|
||||
if plugin_module:
|
||||
await plugin_module.handle_command(room, None, bot, prefix, config)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Cron job scheduler"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!cron</strong> – Schedule commands via cron syntax</summary>
|
||||
<ul>
|
||||
<li><code>!cron add <room_id> <cron_entry> <command></code> – Add job</li>
|
||||
<li><code>!cron remove <room_id> <command></code> – Remove job</li>
|
||||
</ul>
|
||||
<p>Admin only.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user