webexmemebot/app/close.py
Luke Tainton 8af57254ae
All checks were successful
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 7s
CI / ci (pull_request) Successful in 1m15s
black line length 120
2025-06-06 18:37:21 +01:00

29 lines
1.0 KiB
Python

"""Command module for handling the 'exit' command in the Webex meme bot."""
from webex_bot.models.command import Command
class ExitCommand(Command):
"""Command to handle the 'exit' command in the Webex meme bot."""
def __init__(self) -> None:
"""Initialize the ExitCommand with command keyword and help message."""
super().__init__(
command_keyword="exit",
help_message="Exit",
delete_previous_message=True,
)
self.sender: str = ""
def pre_execute(self, message, attachment_actions, activity) -> None: # pylint: disable=unused-argument
"""Pre-execution logic for the exit command."""
return
def execute(self, message, attachment_actions, activity) -> None: # pylint: disable=unused-argument
"""Execute the exit command."""
return
def post_execute(self, message, attachment_actions, activity) -> None: # pylint: disable=unused-argument
"""Post-execution logic for the exit command."""
return