INNER CODE UNIT · Python

_help_line

PleasePrompto/ductor · ductor_bot/messenger/telegram/app.py:127

def _help_line(command: str) -> str:
    """Return one command line for the help panel."""
    description = _CMD_DESC.get(command, "")
    return f"/{command} -- {description}" if description else f"/{command}"


def _build_help_text() -> str:
    return fmt(
        t("help.header"),
        SEP,
        f"{t('help.cat_daily')}\n{_help_line('new')}\n{_help_line('reset')}\n{_help_line('stop')}\n"
        f"{_help_line('interrupt')}\n{_help_line('stop_all')}\n"
        f"{_help_line('model')}\n{_help_line('effort')}\n{_help_line('status')}\n{_help_line('memory')}",
        f"{t('help.cat_automation')}\n{_help_line('session')}\n{_help_line('tasks')}\n{_help_line('cron')}",
        f"{t('help.cat_multiagent')}\n{_help_line('agent_commands')}",
        f"{t('help.cat_browse')}\n{_help_line('where')}\n{_help_line('leave')}\n"
        f"{_help_line('showfiles')}\n{_help_line('info')}\n{_help_line('help')}",
        f"{t('help.cat_maintenance')}\n{_help_line('diagnose')}\n{_help_line('upgrade')}\n{_help_line('restart')}",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…