Refactor help plugin, and included metadata to all plugins
This commit is contained in:
+20
-1
@@ -266,4 +266,23 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
room.room_id,
|
||||
f"An error occurred during geolocation lookup for {query}. Please try again later."
|
||||
)
|
||||
logging.error(f"Error in geo plugin for {query}: {e}", exc_info=True)
|
||||
logging.error(f"Error in geo plugin for {query}: {e}", exc_info=True)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "IP geolocation lookup"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!geo</strong> – IP / domain geolocation</summary>
|
||||
<ul>
|
||||
<li><code>!geo <ip></code> – Locate an IP address</li>
|
||||
<li><code>!geo <domain></code> – Resolves domain then locates</li>
|
||||
</ul>
|
||||
<p>Shows country, region, city, coordinates, ISP, ASN. Uses ip-api.com / ipapi.co.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user