diff --git a/matrixbot/commands.py b/matrixbot/commands.py index 1668281..7cd1348 100644 --- a/matrixbot/commands.py +++ b/matrixbot/commands.py @@ -218,6 +218,10 @@ async def cmd_8ball(client: AsyncClient, room_id: str, sender: str, args: str): await send_text(client, room_id, f"Usage: {BOT_PREFIX}8ball ") return + debug = args.rstrip().endswith("--debug") + if debug: + args = args.rstrip()[:-len("--debug")].rstrip() + WYNTER_ID = "@wynter:mozilla.org" JARED_ID = "@jared:matrix.lotusguild.org" @@ -377,6 +381,7 @@ async def cmd_8ball(client: AsyncClient, room_id: str, sender: str, args: str): f'🎱 {answer}
' f'{args}' + (f'
via {_model_label(BALL_MODEL)}' if used_llm else "") + + (f'
[debug] prompt: {q_for_prompt}' if debug else "") ) await send_html(client, room_id, plain, html) return