feat(V10.1): PLUGIN_VERSION-Konstante + Versionsanzeige in ::status
- version.py: __version__ 10.0.2 -> 10.1, PLUGIN_VERSION-Konstante (Format 'Major.Minor (commit)'), get_version_string() nutzt sie - adapter.py _cmd_status(): uebergibt plugin_version=PLUGIN_VERSION an build_status_text() (war vorher nicht verdrahtet) - install.sh setzt __commit__ weiterhin beim Deployment (statischer Hash, da deploytes Plugin-Verzeichnis kein Git-Repo ist)
This commit is contained in:
@@ -4235,6 +4235,7 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
async def _cmd_status(self, room_id: str, args: str) -> str:
|
||||
"""::status — Zeigt den aktuellen Plugin-Status."""
|
||||
from archivar.inline_commands import build_status_text
|
||||
from archivar.version import PLUGIN_VERSION
|
||||
|
||||
room_count = 0
|
||||
archivar_active = False
|
||||
@@ -4268,6 +4269,7 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
presence_enabled=presence_enabled,
|
||||
current_status=current_status,
|
||||
pulse_active=pulse_active,
|
||||
plugin_version=PLUGIN_VERSION,
|
||||
)
|
||||
|
||||
async def _cmd_reset(self, room_id: str, args: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user