Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -203,3 +203,17 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
f"An unexpected error occurred during WHOIS lookup for {query}. Please try again later."
|
||||
)
|
||||
logging.error(f"Unexpected error in WHOIS plugin for {query}: {e}", exc_info=True)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "WHOIS lookup"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!whois</strong> – WHOIS lookup</summary>
|
||||
<p><code>!whois <domain or IP></code> – Shows registrar, creation/expiry dates, nameservers, contacts.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user