feat(04-02): add /ask to help text and AI status

Update HELP_TEXT in commands.py with new Questions section showing
/ask <model> <question> command.

Update status_command to display AI router status (e.g., "AI Router:
requesty") or "not configured" if AI client isn't initialized.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Mikkel Georgsen 2026-01-16 19:09:02 +00:00
parent 32983c9301
commit 7078379a9a
2 changed files with 14 additions and 1 deletions

View file

@ -16,6 +16,9 @@ Multi-AI collaborative brainstorming platform.
/project models claude,gpt - Set models
/project info - Show current project
*Questions:*
/ask <model> <question> - Ask a single model
*Discussion Commands:*
/open <question> - Ask all models (parallel)
/discuss [rounds] - Start discussion (default: 3)

View file

@ -3,6 +3,8 @@
from telegram import Update
from telegram.ext import ContextTypes
from moai.core.ai_client import get_ai_client
async def status_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
"""Handle /status command - show current project/discussion state.
@ -10,11 +12,19 @@ async def status_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
For now, shows a placeholder since project management isn't implemented yet.
Will be expanded in Phase 3 to show actual project state.
"""
# Check AI client status
try:
client = get_ai_client()
ai_status = f"AI Router: {client.router}"
except RuntimeError:
ai_status = "AI Router: not configured"
# TODO: Phase 3 - Query actual project/discussion state from database
status_text = (
"*MoAI Status*\n\n"
"Bot: Online\n"
"Database: Connected\n\n"
"Database: Connected\n"
f"{ai_status}\n\n"
'_No project selected. Use /project new "Name" to create one._'
)
await update.message.reply_text(status_text, parse_mode="Markdown")