Skip to content

Commit

Permalink
dms: minor tweaks to help text, add DID to username instructions
Browse files Browse the repository at this point in the history
for #826
  • Loading branch information
snarfed committed Oct 29, 2024
1 parent 8620705 commit 2d0e825
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion atproto.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def set_username(to_cls, user, username):
# resolve_handle checks that username is a valid domain
resolved = did.resolve_handle(username, get_fn=util.requests_get)
if resolved != copy_did:
raise RuntimeError(f"""You'll need to connect that domain to your bridged Bluesky account, either <a href="https://bsky.social/about/blog/4-28-2023-domain-handle-tutorial">with DNS</a> <a href="https://atproto.com/specs/handle#handle-resolution">or HTTP</a>. Once you're done, <a href="https://bsky-debug.app/handle?handle={username}">check your work here</a>, then DM me <code>username {username}</code> again.""")
raise RuntimeError(f"""<p>You'll need to connect that domain to your bridged Bluesky account, either <a href="https://bsky.social/about/blog/4-28-2023-domain-handle-tutorial">with DNS</a> <a href="https://atproto.com/specs/handle#handle-resolution">or HTTP</a>. Your DID is: <code>{copy_did}</code><p>Once you're done, <a href="https://bsky-debug.app/handle?handle={username}">check your work here</a>, then DM me <em>username {username}</em> again.""")

try:
repo = arroba.server.storage.load_repo(copy_did)
Expand Down
12 changes: 6 additions & 6 deletions dms.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ def reply(text, type=None):

if cmd in ('?', 'help', 'commands', 'info', 'hi', 'hello'):
return reply(f"""\
<p>Hi! I'm a friendly bot that can help you bridge your account into {to_proto.LABEL}. Here are some commands I respond to:</p>
<p>Hi! I'm a friendly bot that can help you bridge your account into {to_proto.PHRASE}. Here are some commands I respond to:</p>
<ul>
<li><code>start</code>: enable bridging for your account
<li><code>stop</code>: disable bridging for your account
<li><code>username [domain]</code>: set a custom domain username for your bridged account
<li><code>[handle]</code>: make me DM a user on {to_proto.LABEL} to request that they bridge their account into {from_user.LABEL}
<li><code>help</code>: print this message
<li><em>start</em>: enable bridging for your account
<li><em>stop</em>: disable bridging for your account
<li><em>username [domain]</em>: set a custom domain username (handle)
<li><em>[handle]</em>: ask me to DM a user on {to_proto.PHRASE} to request that they bridge their account into {from_user.PHRASE}
<li><em>help</em>: print this message
</ul>""")

if cmd in ('yes', 'ok', 'start') and not arg:
Expand Down

0 comments on commit 2d0e825

Please sign in to comment.