feat(02-02): create commands.py with /help and /start handlers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Mikkel Georgsen 2026-01-16 18:16:33 +00:00
parent 712024eb10
commit 98b71829cc

View file

@ -0,0 +1,46 @@
"""Basic command handlers for MoAI bot."""
from telegram import Update
from telegram.ext import ContextTypes
HELP_TEXT = """
*MoAI - Master of AIs*
Multi-AI collaborative brainstorming platform.
*Project Commands:*
/projects - List all projects
/project new "Name" - Create new project
/project select <id|name> - Switch to project
/project delete <id> - Delete project
/project models claude,gpt - Set models
/project info - Show current project
*Discussion Commands:*
/open <question> - Ask all models (parallel)
/discuss [rounds] - Start discussion (default: 3)
/next - Trigger next round
/stop - Stop current discussion
*Output Commands:*
/consensus - Generate consensus summary
/export - Export project as markdown
*Utility:*
/status - Show current state
/help - Show this message
""".strip()
async def start_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
"""Handle /start command - welcome message."""
await update.message.reply_text(
"Welcome to MoAI!\n\n"
"Use /help to see available commands.\n"
'Use /project new "Name" to create your first project.'
)
async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
"""Handle /help command - show available commands."""
await update.message.reply_text(HELP_TEXT, parse_mode="Markdown")