mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
Remove dead code from living files
Delete unused CommandResult class from commands/base.py and unused format_dm_response method from responder.py. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1f66faff0c
commit
94d27a634e
2 changed files with 0 additions and 33 deletions
|
|
@ -50,23 +50,3 @@ class CommandHandler(ABC):
|
||||||
Response string to send back
|
Response string to send back
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CommandResult:
|
|
||||||
"""Result from command execution."""
|
|
||||||
|
|
||||||
def __init__(
|
|
||||||
self,
|
|
||||||
response: str,
|
|
||||||
success: bool = True,
|
|
||||||
suppress_history: bool = True,
|
|
||||||
):
|
|
||||||
"""
|
|
||||||
Args:
|
|
||||||
response: Text response to send
|
|
||||||
success: Whether command succeeded
|
|
||||||
suppress_history: If True, don't add to conversation history
|
|
||||||
"""
|
|
||||||
self.response = response
|
|
||||||
self.success = success
|
|
||||||
self.suppress_history = suppress_history
|
|
||||||
|
|
|
||||||
|
|
@ -138,19 +138,6 @@ class Responder:
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def format_dm_response(self, text: str, sender_name: str) -> str:
|
|
||||||
"""Format response for DM context.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
text: Response text
|
|
||||||
sender_name: Name of recipient
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
Formatted response (currently unchanged)
|
|
||||||
"""
|
|
||||||
# Could prefix with name or add other formatting
|
|
||||||
return text
|
|
||||||
|
|
||||||
def format_channel_response(
|
def format_channel_response(
|
||||||
self, text: str, sender_name: str, mention_sender: bool = False
|
self, text: str, sender_name: str, mention_sender: bool = False
|
||||||
) -> str:
|
) -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue