Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -100,3 +100,16 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
await bot.api.send_markdown_message(room.room_id, f"😕 **{target}** HTTP/HTTPS services are down")
|
||||
logging.info(f"{target} HTTP/HTTPS services are down")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Check if a site is up"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!isup</strong> – Is it up?</summary>
|
||||
<p><code>!isup <domain or IP></code> – Performs DNS resolution and checks HTTP/HTTPS availability.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user