Skip to content

Your lightweight open-source personal agent.

feat(pairing): friendlier pairing reply with slash command hint

chengyongru589792f41e90
diff --git a/nanobot/pairing/store.py b/nanobot/pairing/store.py
index 734df2737..4e248e261 100644
--- a/nanobot/pairing/store.py
+++ b/nanobot/pairing/store.py
@@ -179,9 +179,11 @@ def get_approved(channel: str) -> list[str]:
def format_pairing_reply(code: str) -> str:
"""Return the pairing-code message sent to unrecognised DM senders."""
return (
- "This assistant requires approval before it can respond.\n"
- f"Your pairing code is: `{code}`\n"
- f"Ask the owner to run: `nanobot pairing approve {code}`"
+ "Hi there! This assistant only responds to approved users.\n\n"
+ f"Your pairing code is: `{code}`\n\n"
+ "To get access, ask the owner to approve this code:\n"
+ f"- In this chat: send `/pairing approve {code}`\n"
+ f"- Via CLI: run `nanobot pairing approve {code}`"
)