Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -280,3 +280,19 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
os.unlink(image_path)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Wikipedia article summary"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!wp</strong> – Wikipedia summary</summary>
|
||||
<p><code>!wp <search term></code> – Returns the lead section and main image from Wikipedia.<br>
|
||||
Uses MediaWiki APIs, no scraping.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user