roboluke-tasks/app/commands/exit.py
Luke Tainton f611b685b3
fix(config): return None if env var is empty or non-existent (#315)
* fix(config): return None if env var is empty or non-existent
* chore: fix pylint issues
* fix: add unit test for non-existent env vars
2024-11-21 22:26:07 +00:00

30 lines
758 B
Python

"""Exit command."""
import logging
from webex_bot.models.command import Command
log: logging.Logger = logging.getLogger(__name__)
class ExitCommand(Command):
"""Exit command class."""
def __init__(self) -> None:
"""Exit command class."""
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."""
def execute(self, message, attachment_actions, activity) -> None:
"""Execute method."""
def post_execute(self, message, attachment_actions, activity) -> None:
"""Post-execute method."""