meshai/meshai/commands/ping.py
Matt fd3f995ebb Initial commit: MeshAI - LLM-powered Meshtastic assistant
Features:
- Multi-backend LLM support (OpenAI, Anthropic, Google)
- Rolling summary memory for token optimization (~70-80% reduction)
- Per-user conversation history with SQLite persistence
- Bang commands (!help, !ping, !reset, !status, !weather)
- Meshtastic integration via serial or TCP
- Message chunking for mesh network constraints (150 char limit)
- Rate limiting to prevent network congestion
- Rich TUI configurator
- Docker support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 11:53:46 -07:00

15 lines
356 B
Python

"""Ping command handler."""
from .base import CommandContext, CommandHandler
class PingCommand(CommandHandler):
"""Simple connectivity test."""
name = "ping"
description = "Test connectivity"
usage = "!ping"
async def execute(self, args: str, context: CommandContext) -> str:
"""Respond with pong."""
return "pong"