2024-11-21 23:26:07 +01:00
|
|
|
"""Exit command."""
|
2023-04-05 21:57:31 +02:00
|
|
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
from webex_bot.models.command import Command
|
|
|
|
|
|
|
|
log: logging.Logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
class ExitCommand(Command):
|
2024-11-21 23:26:07 +01:00
|
|
|
"""Exit command class."""
|
|
|
|
|
2023-04-05 21:57:31 +02:00
|
|
|
def __init__(self) -> None:
|
2024-11-21 23:26:07 +01:00
|
|
|
"""Exit command class."""
|
2023-04-05 21:57:31 +02:00
|
|
|
super().__init__(
|
|
|
|
command_keyword="exit",
|
|
|
|
help_message="Exit",
|
|
|
|
delete_previous_message=True,
|
|
|
|
)
|
|
|
|
self.sender: str = ""
|
|
|
|
|
|
|
|
def pre_execute(self, message, attachment_actions, activity) -> None:
|
2024-11-21 23:26:07 +01:00
|
|
|
"""Pre-execute method."""
|
2023-04-05 21:57:31 +02:00
|
|
|
|
|
|
|
def execute(self, message, attachment_actions, activity) -> None:
|
2024-11-21 23:26:07 +01:00
|
|
|
"""Execute method."""
|
2023-04-05 21:57:31 +02:00
|
|
|
|
|
|
|
def post_execute(self, message, attachment_actions, activity) -> None:
|
2024-11-21 23:26:07 +01:00
|
|
|
"""Post-execute method."""
|