Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -190,3 +190,21 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
return
|
||||
await bot.api.send_markdown_message(room.room_id, format_response(data, display))
|
||||
logging.info(f"Time sent for {query}")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "World clock (no hardcoded cities)"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!time</strong> – Current time for any city</summary>
|
||||
<ul>
|
||||
<li><code>!time <city></code> – Geocode any city (free Open-Meteo API)</li>
|
||||
<li><code>!time <IANA zone></code> – e.g., <code>Europe/London</code></li>
|
||||
</ul>
|
||||
<p>Also shows current temperature if available.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user