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:
parent
32983c9301
commit
7078379a9a
2 changed files with 14 additions and 1 deletions
|
|
@ -16,6 +16,9 @@ Multi-AI collaborative brainstorming platform.
|
||||||
/project models claude,gpt - Set models
|
/project models claude,gpt - Set models
|
||||||
/project info - Show current project
|
/project info - Show current project
|
||||||
|
|
||||||
|
*Questions:*
|
||||||
|
/ask <model> <question> - Ask a single model
|
||||||
|
|
||||||
*Discussion Commands:*
|
*Discussion Commands:*
|
||||||
/open <question> - Ask all models (parallel)
|
/open <question> - Ask all models (parallel)
|
||||||
/discuss [rounds] - Start discussion (default: 3)
|
/discuss [rounds] - Start discussion (default: 3)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
from telegram import Update
|
from telegram import Update
|
||||||
from telegram.ext import ContextTypes
|
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:
|
async def status_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
|
||||||
"""Handle /status command - show current project/discussion state.
|
"""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.
|
For now, shows a placeholder since project management isn't implemented yet.
|
||||||
Will be expanded in Phase 3 to show actual project state.
|
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
|
# TODO: Phase 3 - Query actual project/discussion state from database
|
||||||
status_text = (
|
status_text = (
|
||||||
"*MoAI Status*\n\n"
|
"*MoAI Status*\n\n"
|
||||||
"Bot: Online\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._'
|
'_No project selected. Use /project new "Name" to create one._'
|
||||||
)
|
)
|
||||||
await update.message.reply_text(status_text, parse_mode="Markdown")
|
await update.message.reply_text(status_text, parse_mode="Markdown")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue