Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -152,3 +152,25 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
config.admin_user = ""
|
||||
config.prefix = "!"
|
||||
await bot.api.send_text_message(room.room_id, "Configuration reset")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Admin configuration commands"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>Admin Config</strong> (!set, !get, !saveconf, …)</summary>
|
||||
<ul>
|
||||
<li><code>!set <option> <value></code> – Set admin_user/prefix</li>
|
||||
<li><code>!get <option></code> – Display config value</li>
|
||||
<li><code>!show</code> – Show current settings</li>
|
||||
<li><code>!saveconf</code> / <code>!loadconf</code> – Save/load config</li>
|
||||
<li><code>!rehash</code> – Reload configuration</li>
|
||||
</ul>
|
||||
<p>Admin only.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user