Remove dead channel/mention code — DM-only bot cleanup

MeshAI is now DM-only. Removed all unreachable channel response
paths, @mention detection, ChannelsConfig, and channel TUI menu.
Fixed restart mechanism with integrated watcher and SIGKILL fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ubuntu 2026-02-24 08:43:25 +00:00
commit 1e033316fb
7 changed files with 81 additions and 199 deletions

View file

@ -174,22 +174,12 @@ class MeshAI:
if not response:
return
# Send response
if message.is_dm:
await self.responder.send_response(
text=response,
destination=message.sender_id,
channel=message.channel,
)
else:
formatted = self.responder.format_channel_response(
response, message.sender_name, mention_sender=True
)
await self.responder.send_response(
text=formatted,
destination=None,
channel=message.channel,
)
# Send DM response
await self.responder.send_response(
text=response,
destination=message.sender_id,
channel=message.channel,
)
except Exception as e:
logger.error(f"Error handling message: {e}", exc_info=True)