Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -480,3 +480,31 @@ async def ddg_weather(room, bot, location):
|
||||
)
|
||||
except Exception as e:
|
||||
await bot.api.send_text_message(room.room_id, f"Error getting weather: {str(e)}")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "DuckDuckGo search"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!ddg</strong> – DuckDuckGo search and instant answers</summary>
|
||||
<ul>
|
||||
<li><code>!ddg <query></code> – Instant answer (default)</li>
|
||||
<li><code>!ddg search <query></code> – Web search results</li>
|
||||
<li><code>!ddg instant <query></code> – Detailed instant answer</li>
|
||||
<li><code>!ddg image <query></code> – Image search</li>
|
||||
<li><code>!ddg news <query></code> – News search</li>
|
||||
<li><code>!ddg video <query></code> – Video search</li>
|
||||
<li><code>!ddg bang <!bang query></code> – Use DuckDuckGo bangs</li>
|
||||
<li><code>!ddg define <word></code> – Word definition</li>
|
||||
<li><code>!ddg calc <expression></code> – Calculator</li>
|
||||
<li><code>!ddg weather [location]</code> – Weather information</li>
|
||||
<li><code>!ddg help</code> – Show detailed help</li>
|
||||
</ul>
|
||||
<p>No API key required.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user