Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -236,3 +236,19 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
f"An error occurred while searching Exploit-DB: {str(e)}"
|
||||
)
|
||||
logging.error(f"Error in exploitdb plugin: {e}", exc_info=True)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Exploit-DB search"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!exploitdb</strong> – Search Exploit Database</summary>
|
||||
<p><code>!exploitdb <search term> [max_results]</code> – Search for exploits (title, EDB-ID, type, platform, author, link).<br>
|
||||
Example: <code>!exploitdb wordpress 5</code></p>
|
||||
<p>Fetches from the official Exploit-DB CSV. Falls back to search links if unavailable.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user