Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -328,3 +328,23 @@ async def handle_shodan_error(room, bot, status_code):
|
||||
message = error_messages.get(status_code, f"Shodan API error: {status_code}")
|
||||
await bot.api.send_text_message(room.room_id, message)
|
||||
logging.error(f"Shodan API error: {status_code}")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Shodan.io reconnaissance"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!shodan</strong> – Shodan search</summary>
|
||||
<ul>
|
||||
<li><code>!shodan ip <ip></code> – IP info with open ports</li>
|
||||
<li><code>!shodan search <query></code> – Search internet devices</li>
|
||||
<li><code>!shodan host <domain></code> – Host & subdomain enumeration</li>
|
||||
<li><code>!shodan count <query></code> – Result counts</li>
|
||||
</ul>
|
||||
<p>Requires <strong>SHODAN_KEY</strong> env var.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user