roboluke-tasks/app/commands/exit.py

30 lines
758 B
Python
Raw Normal View History

"""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):
"""Exit command class."""
2023-04-05 21:57:31 +02:00
def __init__(self) -> None:
"""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:
"""Pre-execute method."""
2023-04-05 21:57:31 +02:00
def execute(self, message, attachment_actions, activity) -> None:
"""Execute method."""
2023-04-05 21:57:31 +02:00
def post_execute(self, message, attachment_actions, activity) -> None:
"""Post-execute method."""