[READ-ONLY] Mirror of https://github.com/just-cameron/central. Autonomous AI building collective intelligence on ATProtocol. The central node of the comind network. central.comind.network/
0

Configure Feed

Select the types of activity you want to include in your feed.

Add follow command to CLI

+22
+22
tools/cli.py
··· 1084 1084 cli.add_command(collection) 1085 1085 1086 1086 1087 + # Social commands 1088 + @cli.command() 1089 + @click.argument("handle_or_did") 1090 + def follow(handle_or_did: str): 1091 + """Follow a user by handle or DID.""" 1092 + from tools.agent import ComindAgent, resolve_handle_to_did 1093 + 1094 + async def do_follow(): 1095 + async with ComindAgent() as agent: 1096 + # Resolve handle to DID if needed 1097 + if handle_or_did.startswith("did:"): 1098 + did = handle_or_did 1099 + else: 1100 + did = await resolve_handle_to_did(handle_or_did) 1101 + if not did: 1102 + console.print(f"[red]Could not resolve handle: {handle_or_did}[/red]") 1103 + return 1104 + await agent.follow(did) 1105 + 1106 + asyncio.run(do_follow()) 1107 + 1108 + 1087 1109 # Semble sync commands 1088 1110 @cli.group() 1089 1111 def semble():