Packages › trotsky › StepActorFollow
StepActorFollow class
Represents a step that performs an actor follow operation using the agent.
Signature:
typescript
export declare class StepActorFollow<P = StepActor, C extends StepActorOutput = StepActorOutput, O = null> extends Step<P, C, O>Extends: Step<P, C, O>
Example 1
Follow a specific actor:
ts
await Trotsky.init(agent)
.actor("alice.bsky.social")
.follow()
.run()Example 2
Follow back all your followers:
ts
await Trotsky.init(agent)
.actor("myhandle.bsky.social")
.followers()
.each()
.when((step) => !step?.context?.viewer?.following)
.follow()
.wait(2000)
.run()Methods
Method | Modifiers | Description |
|---|---|---|
Applies the step by performing a follow operation. Requires the context to provide the |