Refactor help plugin, and included metadata to all plugins
This commit is contained in:
+12
-1
@@ -231,4 +231,15 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "News aggregator using GNews API"
|
||||
__description__ = "News headlines via GNews API"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!news</strong> – Latest news headlines</summary>
|
||||
<ul>
|
||||
<li><code>!news [top|world|tech|business|science|health|sports|crypto]</code></li>
|
||||
<li><code>!news search <query></code></li>
|
||||
<li>You can append a number: <code>!news tech 8</code></li>
|
||||
</ul>
|
||||
<p>Requires <strong>GNEWS_API_KEY</strong> env var.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user