Source code for pi_portal.modules.integrations.slack.cli.commands.command_id
"""Slack CLI ID command."""
from pi_portal.modules.configuration import state
from .bases.command import SlackCommandBase
[docs]class IDCommand(SlackCommandBase):
"""Command to report the unique ID the bot is running with.
:param bot: The configured slack bot in use.
"""
[docs] def invoke(self) -> None:
"""Send the unique id for this bot's instance."""
running_state = state.State()
self.slack_bot.slack_client.send_message(f"ID: {running_state.log_uuid}")