Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -107,3 +107,18 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
"An unexpected error occurred while fetching Bitcoin price."
|
||||
)
|
||||
logging.error(f"Unexpected error in Bitcoin plugin: {e}", exc_info=True)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "Current Bitcoin price"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!btc</strong> – Current Bitcoin price</summary>
|
||||
<p>Fetches the latest BTC/USD price from bitcointicker.co.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user